case EBADF:
/* Someone closed the jobs pipe.
That shouldn't happen but if it does we're done. */
- O (fatal, NILF, _("job server shut down"));
+ O (fatal, NILF, _("job server shut down"));
default:
pfatal_with_name (_("pselect jobs pipe"));
{
osync_handle = get_tmpfd (&osync_tmpfile);
if (osync_handle >= 0)
- sync_parent = 1;
+ {
+ fd_noinherit (osync_handle);
+ sync_parent = 1;
+ }
}
char *
OSS (fatal, NILF, _("cannot open output sync mutex %s: %s"),
osync_tmpfile, strerror (errno));
+ fd_noinherit (osync_handle);
+
return 1;
}