Working with processes in C

Posted by Gary on Stack Overflow See other posts from Stack Overflow or by Gary
Published on 2010-04-23T09:40:19Z Indexed on 2010/04/23 9:43 UTC
Read the original article Hit count: 357

Filed under:
|

Hi, just a quick question regarding C and processes. In my program, I create another child process and use a two-directional pipe to communicate between the child and parent. The child calls execl() to run yet another program.

My question is: I want the parent to wait n amount of seconds and then check if the program that the child has run has exited (and with what status). Something like waitpid() but if the child doesn't exit in n seconds, I'd like to do something different.

© Stack Overflow or respective owner

Related posts about c

    Related posts about processes