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

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).