This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/17092] nscd does not correctly return child exit status


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]