[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] MiNTLib bug, wait*



Hi,

yet anuzzer bug in the MiNTLib 0.50.1:  the upper 2 bytes in the
status-pointer argument passed to wait4 will contain garbage (more exactly
the child pid) on completion.  This bug also affects wait(), wait3(),
waitpid() and the return value from system() because these functions call
wait4() internally.

Fix: Don't interpret the contents of the status pointer (resp. the return
value from system()) yourself, use the macros in sys/wait.h instead.

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000
mailto:gufl0000@stud.uni-sb.de