1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 06:07:30 +02:00

Set close-on-exec flag on inotify file descriptor

This commit is contained in:
Maarten ter Huurne 2014-08-14 07:30:33 +02:00
parent 47d349f78b
commit 6a2a0969f3

View File

@ -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;