You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If they are closed, another file descriptor could be created with these
numbers, and so standard library functions that use them might write to
an unwanted place. dup2() a file descriptor to /dev/null over them
instead.
Also statically initialize trigger_fd to -1, which is the conventional
value for an invalid file descriptor.
This requires care to avoid closing the file descriptor to /dev/null in
fix_fds(), which took over an hour to debug.
0 commit comments