mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Set close-on-exec flag on inotify file descriptor
This commit is contained in:
@@ -33,7 +33,7 @@ int Monitor::run(void)
|
|||||||
|
|
||||||
DEBUG("Starting inotify thread for path %s...\n", path.c_str());
|
DEBUG("Starting inotify thread for path %s...\n", path.c_str());
|
||||||
|
|
||||||
fd = inotify_init();
|
fd = inotify_init1(IN_CLOEXEC);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
ERROR("Unable to start inotify\n");
|
ERROR("Unable to start inotify\n");
|
||||||
return fd;
|
return fd;
|
||||||
|
|||||||
Reference in New Issue
Block a user