Jan Engelhardt
On Tuesday 2015-07-28 12:22, Joerg Schilling wrote:
like most platforms, Linux unfortunately does not correctly implement waitid(2).
It seems that before July 8, Solaris and UnixWare have been the only systems where waitid() was implemented correctly. Then I contacted the responsible person for FreeBSD and got a fix within 20 hours.
Does someone know whom to contact to fix the Linux kernel?
Given I received no replies to https://lkml.org/lkml/2015/7/9/219 , I guess any patch is in order, if only to spawn further responses.
When we identified the wording bug in the POSIX standard in 2012, Eric Blake from RedHat told us that he asked people from LKML. I am not sure whether this did result in any action. Let me give the hint that the wording was OK in SUSv1 (UNIX-95) but was made incorrect with UNIX-98 (SUSv2). More background: UNOS (the first UNIX clone) had a syscall with a similar interface in 1980 already (cwait()) and the waitid() call was added in May 1989 for SVr4. It seems that until now, nobody used waitid(). In June 2015, I modified the Bourne Shell sources to use waitid() instead of waitpid() and added support for the waitid() interface via new ${.sh.*} variables, so the shell now allows to realiably report the exit reason, exit code and kill/stop signals. In case this is not yet done in Linux, the full exit code is also available in the siginfo_t parameter to signal handlers for SIGCHLD. 35 years after having the full exit code on UNOS and 26 years after the same was possible with UNIX, we should finally be able to use the new interface, but this requires more than two platforms to support the feature. Jörg -- EMail:joerg@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/' -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org