public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/17092] New: nscd does not correctly return child exit status
@ 2014-06-25 22:20 arjun.is at lostca dot se
2014-06-25 22:21 ` [Bug nscd/17092] " arjun.is at lostca dot se
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: arjun.is at lostca dot se @ 2014-06-25 22:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17092
Bug ID: 17092
Summary: nscd does not correctly return child exit status
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nscd
Assignee: unassigned at sourceware dot org
Reporter: arjun.is at lostca dot se
CC: drepper.fsp at gmail dot com
The nscd parent process returns the result of a `wait' call rather than
the exit status of the child it waits for. These two aren't exactly the
same. In my case (and probably on most machines), the exit status is in
the 2nd LSB of the result of `wait', and so:
e.g. if the nscd child process returns 1, the parent returns 1 << 8,
which Bash happily reports as 0.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug nscd/17092] nscd does not correctly return child exit status
2014-06-25 22:20 [Bug nscd/17092] New: nscd does not correctly return child exit status arjun.is at lostca dot se
@ 2014-06-25 22:21 ` arjun.is at lostca dot se
2014-06-26 8:37 ` fweimer at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: arjun.is at lostca dot se @ 2014-06-25 22:21 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17092
Arjun Shankar <arjun.is at lostca dot se> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |arjun.is at lostca dot se
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug nscd/17092] nscd does not correctly return child exit status
2014-06-25 22:20 [Bug nscd/17092] New: nscd does not correctly return child exit status arjun.is at lostca dot se
2014-06-25 22:21 ` [Bug nscd/17092] " arjun.is at lostca dot se
@ 2014-06-26 8:37 ` fweimer at redhat dot com
2014-06-27 18:02 ` cvs-commit at gcc dot gnu.org
2014-06-27 18:03 ` siddhesh at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 8:37 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17092
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug nscd/17092] nscd does not correctly return child exit status
2014-06-25 22:20 [Bug nscd/17092] New: nscd does not correctly return child exit status arjun.is at lostca dot se
2014-06-25 22:21 ` [Bug nscd/17092] " arjun.is at lostca dot se
2014-06-26 8:37 ` fweimer at redhat dot com
@ 2014-06-27 18:02 ` cvs-commit at gcc dot gnu.org
2014-06-27 18:03 ` siddhesh at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-06-27 18:02 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17092
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 6f12d0629f411c6b580585dbcfb4409a72b7362e (commit)
from cb403c34c6f6e1cce5018864485958cfc2e28906 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6f12d0629f411c6b580585dbcfb4409a72b7362e
commit 6f12d0629f411c6b580585dbcfb4409a72b7362e
Author: Arjun Shankar <arjun.is@lostca.se>
Date: Fri Jun 27 23:31:47 2014 +0530
Correctly report nscd child process status (BZ #17092)
The nscd parent process returns the result of a `wait' call rather
than the exit status of the child it waits for. These two aren't
exactly the same. In my case (and probably on most machines), the exit
status is in the 2nd LSB of the result of `wait', and so:
e.g. if the nscd child process returns 1, the parent returns 1 << 8,
which Bash happily reports as 0.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 2 +-
nscd/nscd.c | 22 +++++++++++++---------
3 files changed, 20 insertions(+), 10 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug nscd/17092] nscd does not correctly return child exit status
2014-06-25 22:20 [Bug nscd/17092] New: nscd does not correctly return child exit status arjun.is at lostca dot se
` (2 preceding siblings ...)
2014-06-27 18:02 ` cvs-commit at gcc dot gnu.org
@ 2014-06-27 18:03 ` siddhesh at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: siddhesh at redhat dot com @ 2014-06-27 18:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17092
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |siddhesh at redhat dot com
Resolution|--- |FIXED
--- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
Fixed in master.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-27 18:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25 22:20 [Bug nscd/17092] New: nscd does not correctly return child exit status arjun.is at lostca dot se
2014-06-25 22:21 ` [Bug nscd/17092] " arjun.is at lostca dot se
2014-06-26 8:37 ` fweimer at redhat dot com
2014-06-27 18:02 ` cvs-commit at gcc dot gnu.org
2014-06-27 18:03 ` siddhesh at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).