This is the mail archive of the
mailing list for the Cygwin project.
Cygwin parenting issue
- From: Norton Allen <allen at huarp dot harvard dot edu>
- To: cygwin at cygwin dot com
- Date: Wed, 1 Jan 2020 16:01:00 -0500
- Subject: Cygwin parenting issue
I have a project that involves starting a number of programs in the
background and then monitoring and reporting when they terminate. My
approach has been to write a small application called 'parent' that
loops on waitpid() until there are no more children. I invoke it in a
This of course works under Linux, but under Cygwin, although 'ps'
documents the parent/child relationship, waitpid() immediately returns
ECHILD, indicating there are no child processes. If I use the shell's
waitpid, that works alright, so I am wondering whether the problem is a
casualty of the exec.
I have a minimal test setup at
https://github.com/nthallen/test_parenting, along with examples showing
how it works under Linux and Cygwin.
Is this something that we would expect to work under Cygwin?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple