Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
xen.7652
xs-22-reopen_log-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xs-22-reopen_log-fix.patch of Package xen.7652
commit d7ee5c3c7ad9a23441efc2a7553aa1df6996959d Author: Juergen Gross <jgross@suse.com> Date: Wed Feb 22 16:28:45 2017 +0100 xenstore: correct test for opened logfile in reopen_log() As 0 is a valid file descriptor testing a descriptor to be valid should be done via >= 0 instead of > 0. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com> diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index 1e9b622..7b16338 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -210,7 +210,7 @@ static void trigger_reopen_log(int signal __attribute__((unused))) static void reopen_log(void) { if (tracefile) { - if (tracefd > 0) + if (tracefd >= 0) close(tracefd); tracefd = open(tracefile, O_WRONLY|O_CREAT|O_APPEND, 0600);
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