summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-10-12 13:02:31 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-10-12 13:02:31 +0100
commit3d5e73570455b19f75c1ba8223956ea15657c009 (patch)
tree8775cbec31430cbc726088ea7d60df799b0ed0ec /src/lib/eio
parent338e92e8d2e0278c3068817b2457b8c03755fa80 (diff)
eio - fbsd - make fd for monitored file close on exec
this fixes T7486
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor_kevent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eio/eio_monitor_kevent.c b/src/lib/eio/eio_monitor_kevent.c
index b0ab7f7..1e6a97d 100644
--- a/src/lib/eio/eio_monitor_kevent.c
+++ b/src/lib/eio/eio_monitor_kevent.c
@@ -274,6 +274,7 @@ void eio_monitor_backend_add(Eio_Monitor *monitor)
274 fd = open(monitor->path, O_RDONLY); 274 fd = open(monitor->path, O_RDONLY);
275 if (fd < 0) goto error; 275 if (fd < 0) goto error;
276 276
277 eina_file_close_on_exec(fd, EINA_TRUE);
277 backend->fd = fd; 278 backend->fd = fd;
278 backend->parent = monitor; 279 backend->parent = monitor;
279 monitor->backend = backend; 280 monitor->backend = backend;