mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:36:17 +02:00
Set close-on-exec flag on inotify file descriptor
This commit is contained in:
parent
47d349f78b
commit
6a2a0969f3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user