[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: RE: [PATCH] fsck: Fix incorrect handling of child exit
From: <dietmar.schindler () manroland-web ! com>
Date: 2018-05-25 8:18:25
Message-ID: 71ce8c8fab1646ab94c6727e4606f100 () AUSMXMBX04 ! mrws ! biz
[Download RAW message or body]
> -----Original Message-----
> From: busybox [mailto:busybox-bounces@busybox.net] On Behalf Of Niklas Hambüchen
> Sent: Thursday, May 24, 2018 9:51 PM
>
> …
> The way you do it now, using WEXITSTATUS in all cases where it's not WIFSIGNALED, \
> makes the assumption that WIFSIGNALED is the precise inverse of WIFEXITED.
>
> But I haven't found the glibc (API) to make that guarantee anywhere.
There's, among other cases, this paragraph in The Open Group Base Specification \
http://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html:
"If the information pointed to by stat_loc was stored by a call to waitpid() that did \
not specify the WUNTRACED or WCONTINUED flags, or by a call to the wait() function, \
exactly one of the macros WIFEXITED(*stat_loc) and WIFSIGNALED(*stat_loc) shall \
evaluate to a non-zero value."
--
Best regards,
Dietmar Schindler
________________________________
manroland web systems GmbH | Managing Director: Alexander Wassermann
Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 26816 | VAT: \
DE281389840
Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for \
the use of the individual or entity to whom they are addressed. If you are not the \
intended recipient, you are hereby notified that any use or dissemination of this \
communication is strictly prohibited. If you have received this eMail in error, then \
please delete this eMail. ________________________________
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic