:
This message was edited by gautam at 2006-10-29 4:10:12
:
This message was edited by gautam at 2006-10-29 4:6:30
: : :
i've seen the following in a program:
: : : while(waitpid(-1, NULL, WNOHANG) > 0);
: : : my compiler gives me error here, WNOHANG is undeclared. can anyone tell me in which header it is declared?
: : :
: : :
~Donotalo()
: : :
: : Hi
: : because it's a defined number or a const variable, so you must define or declared it before using it.
: :
: Hi,
:
: Try sys/wait.h and on solaris I see sys/wait.h included in stdlib.h as well.
:
: Just to let you know that line of code is quite normal in a program which creates many child processes to take care of zombie processes.
:
:
:
i'm programming in windows. i tried including stdlib.h but it doesnt help. further suggestion?
~Donotalo()