Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
target-isns.3375
target-isns-dont-ignore-read-return-value.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File target-isns-dont-ignore-read-return-value.patch of Package target-isns.3375
diff -aurp target-isns-0.3.orig/src/isns.c target-isns-0.3/src/isns.c --- target-isns-0.3.orig/src/isns.c 2014-12-02 16:18:53.604832276 -0800 +++ target-isns-0.3/src/isns.c 2014-12-02 16:27:36.457989304 -0800 @@ -1056,9 +1056,12 @@ void isns_registration_refresh(void) { uint64_t count; - read(registration_timer_fd, &count, sizeof(count)); - log_print(LOG_DEBUG, "refreshing registration"); - isns_eid_attr_query(); + if (read(registration_timer_fd, &count, sizeof(count)) >= 0) { + log_print(LOG_DEBUG, "refreshing registration"); + isns_eid_attr_query(); + } else + log_print(LOG_ERR, "regreshing registration failed: %s", + strerror(errno)); } static void isns_registration_set_period(uint32_t period)
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