Close the file descriptor when exec is called.
exec
const INOTIFY_CLOSE_ON_EXEC: InotifyFlags = InotifyFlags(IN_CLOEXEC);
inotify_init1(2) and IN_CLOEXEC therein