eio - fbsd - make fd for monitored file close on exec

this fixes T7486
This commit is contained in:
Carsten Haitzler 2019-10-12 13:02:31 +01:00
parent 338e92e8d2
commit 3d5e735704
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ void eio_monitor_backend_add(Eio_Monitor *monitor)
fd = open(monitor->path, O_RDONLY);
if (fd < 0) goto error;
eina_file_close_on_exec(fd, EINA_TRUE);
backend->fd = fd;
backend->parent = monitor;
monitor->backend = backend;