Search:

Type: Posts; User: cas

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    4,485

    If you call waitpid() on a process, and set...

    If you call waitpid() on a process, and set WNOHANG, waitpid() will return immediately if the process is not dead yet. Of course, it will return immediately if the process is dead, so how do you...
  2. Replies
    6
    Views
    4,485

    Are you sure gdb can follow children? And when...

    Are you sure gdb can follow children? And when you use WNOHANG, are you sure that it's actually reaping the child? That is, are you checking waitpid()'s return value?

    If fork() is not returning...
  3. Replies
    6
    Views
    4,485

    If waitpid() is appearing to hang, that means the...

    If waitpid() is appearing to hang, that means the child has not exited. To have a process run in the background, but still be able to reap children, look at the WNOHANG flag for waitpid().

    To...
Results 1 to 3 of 3