summaryrefslogtreecommitdiff
path: root/legacy/eeze
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-01 13:32:38 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-01 13:32:38 +0000
commitd890c977ffd8339c9c93cfdb61c64b5c1d6a69f4 (patch)
tree5df9fc4f96479801b3e52513c3a7141e9d156910 /legacy/eeze
parentf782172e5a62806f527b56d5fc12e2687c1ea06c (diff)
set NONBLOCK on /proc/self/mountinfo file descriptor
SVN revision: 74738
Diffstat (limited to 'legacy/eeze')
-rw-r--r--legacy/eeze/src/lib/eeze_disk_libmount_new.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/eeze/src/lib/eeze_disk_libmount_new.c b/legacy/eeze/src/lib/eeze_disk_libmount_new.c
index 95dc74a448..f55f307317 100644
--- a/legacy/eeze/src/lib/eeze_disk_libmount_new.c
+++ b/legacy/eeze/src/lib/eeze_disk_libmount_new.c
@@ -434,6 +434,8 @@ eeze_mount_tabs_watch(void)
434 434
435 _mountinfo = open("/proc/self/mountinfo", O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 435 _mountinfo = open("/proc/self/mountinfo", O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
436 if (_mountinfo < 0) goto error; 436 if (_mountinfo < 0) goto error;
437 if (fcntl(_mountinfo, F_SETFL, O_NONBLOCK) < 0) goto error;
438
437 _mountinfo_fdh = ecore_main_fd_handler_add(_mountinfo, ECORE_FD_ERROR, _eeze_mount_fdh, NULL, NULL, NULL); 439 _mountinfo_fdh = ecore_main_fd_handler_add(_mountinfo, ECORE_FD_ERROR, _eeze_mount_fdh, NULL, NULL, NULL);
438 if (!_mountinfo_fdh) goto error; 440 if (!_mountinfo_fdh) goto error;
439 _fstab_mon = ecore_file_monitor_add("/etc/fstab", _eeze_mount_tab_watcher, NULL); 441 _fstab_mon = ecore_file_monitor_add("/etc/fstab", _eeze_mount_tab_watcher, NULL);