> I could not understand the option WCONTINUED in waitpid(). Can
>one of you explain what it is. And one more thing, there is no such
>option in LINUX. Why?. To acheive similar behaviour what is the correct
These two options are related:
WUNTRACED (aka WSTOPPED)
The status of any child processes specified by pid
that are stopped, and whose status has not yet been
reported since they stopped, is also reported to the
The status of any continued child process specified by
pid, whose status has not been reported since it con-
tinued, is also reported to the calling process.
WSTOPPED makes waitpid() return the child status when the
child process is stopped via a job-control stopping
signal like SIGSTOP.
WCONTINUED makes waitpid() return the child status when the
child process is continued via SIGCONT.
These options are used typically by job-control shells.
I don't know why LINUX does not provide WCONTINUED.