I want to suspend (pause) a forked process at startup and resume it later on. Is there any way to do that with POSIX or Solaris.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I did it by using a semaphore and a signal handler. To wake up the child, the parent process sends a signal to the child process which in turn posts the semaphore from within the signal handler. The child, which was waiting on that semaphore, then wakes up.