Merge pull request #1 from granxarixia/master

Close file descriptor of event loop's semaphore on exec
This commit is contained in:
Stanislav Angelovič authored and GitHub committed 2017-12-06 15:26:57 +01:00
commit be754eb991
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ References/documentation
Contributing Contributing
------------ ------------
Contributions that increase the library quality, functionality, or fix issues are very welcome. To introduce a change, please submit a merge request with a description. Contributions that increase the library quality, functionality, or fix issues are very welcome. To introduce a change, please submit a pull request with a description.
Contact Contact
------- -------
+1 -1
View File
@@ -59,7 +59,7 @@ Connection::Connection(Connection::BusType type)
if (r < 0) if (r < 0)
SDBUS_THROW_ERROR("Failed to flush system bus on opening", -r); SDBUS_THROW_ERROR("Failed to flush system bus on opening", -r);
r = eventfd(0, EFD_SEMAPHORE); r = eventfd(0, EFD_SEMAPHORE | EFD_CLOEXEC);
SDBUS_THROW_ERROR_IF(r < 0, "Failed to create event object", -errno); SDBUS_THROW_ERROR_IF(r < 0, "Failed to create event object", -errno);
runFd_ = r; runFd_ = r;
} }