[Bug libc/23017] New: daemon(0,0) doesn't report meaningfull errno (not set) if redirect fails
olivier.lahaye at cea dot fr
sourceware-bugzilla@sourceware.org
Thu Mar 29 14:49:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23017
Bug ID: 23017
Summary: daemon(0,0) doesn't report meaningfull errno (not set)
if redirect fails
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: olivier.lahaye at cea dot fr
CC: drepper.fsp at gmail dot com
Target Milestone: ---
misc/daemon.c:89 errno is not set to a meaningfull value.
for example, calling daemon(0,0) with a buggy /dev/null (not a char device in
my situation) returned errno 37 (ENOLCK / No record locks available).
(I was trying to start gpm after a switchroot that had /dev/null locked before
switchroot and discovered that while daemon reported no lock available, the
real problem was /dev/null being is a buggy state behave like a char device,
but listed as a normal file (a bug from udev or systemd or other component)).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list