Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
libdaemon
libdaemon-0.13-bnc469342.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libdaemon-0.13-bnc469342.diff of Package libdaemon
Index: b/libdaemon/dfork.c =================================================================== --- a/libdaemon/dfork.c +++ b/libdaemon/dfork.c @@ -529,10 +529,13 @@ int daemon_close_allv(const int except_f closedir(d); errno = saved_errno; return -1; } + + if (fd == _daemon_retval_pipe[0]) + _daemon_retval_pipe[0] = -1; /* mark as closed */ } closedir(d); return 0; } @@ -561,10 +564,13 @@ int daemon_close_allv(const int except_f if (found) continue; if (close(fd) < 0 && errno != EBADF) return -1; + + if (fd == _daemon_retval_pipe[0]) + _daemon_retval_pipe[0] = -1; /* mark as closed */ } return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor