mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-27 07:51:09 +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());
|
||||
|
||||
fd = inotify_init();
|
||||
fd = inotify_init1(IN_CLOEXEC);
|
||||
if (fd < 0) {
|
||||
ERROR("Unable to start inotify\n");
|
||||
return fd;
|
||||
|
Loading…
Reference in New Issue
Block a user