Lines 848-858
cannot set socket to close on exec: %s;
Link Here
|
848 |
if (dbs[cnt].check_file) |
848 |
if (dbs[cnt].check_file) |
849 |
{ |
849 |
{ |
850 |
#ifdef HAVE_INOTIFY |
850 |
#ifdef HAVE_INOTIFY |
851 |
if (inotify_fd < 0 |
851 |
if (inotify_fd >= 0) |
852 |
|| (dbs[cnt].inotify_descr |
852 |
{ |
|
|
853 |
dbs[cnt].inotify_descr |
853 |
= inotify_add_watch (inotify_fd, dbs[cnt].filename, |
854 |
= inotify_add_watch (inotify_fd, dbs[cnt].filename, |
854 |
IN_DELETE_SELF | IN_MODIFY)) < 0) |
855 |
IN_DELETE_SELF | IN_MODIFY); |
855 |
/* We cannot notice changes in the main thread. */ |
856 |
} |
|
|
857 |
/* Always fall back to checking file modification times. In its |
858 |
current form the inotify check is totally unreliable */ |
856 |
#endif |
859 |
#endif |
857 |
{ |
860 |
{ |
858 |
/* We need the modification date of the file. */ |
861 |
/* We need the modification date of the file. */ |