Re: [vserver] Getting a real pid 1 init in a container

From: Grzegorz Nosek <grzegorz.nosek_at_gmail.com>
Date: Tue 20 Mar 2012 - 11:13:24 GMT
Message-ID: <4F686654.3020809@gmail.com>

W dniu 20.03.2012 11:31, Grzegorz Nosek pisze:
> 18:58:31.755173 waitid(P_ALL, 0, 0xffc6e6d8,
> WNOHANG|WEXITED|WSTOPPED|WCONTINUED, NULL) = -1 ECHILD (No child
> processes) <0.000208>
>
> OK, so it isn't waitpid() but waitid(). My bad, I guess I haven't heard
> of waitid() before.

Sigh, having reread the waitid() documentation[1] it looks like I have
misinterpreted the return value (ECHILD meaning "no reapable child
processes", not "no children at all"). Silly me, I thought that EAGAIN
would be the "not yet" errno value.

Still, the SIGCHLD apparently isn't delivered anyway. If waitid()
returned ECHILD, meaning the process is still alive, either the
following getpgid() should have succeeded, or a SIGCHLD should have
appeared before it.

Best regards,
  Grzegorz Nosek

1. http://pubs.opengroup.org/onlinepubs/7908799/xsh/waitid.html
Received on Tue Mar 20 11:13:37 2012

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 20 Mar 2012 - 11:13:37 GMT by hypermail 2.1.8