requested by dracut developers because:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
Addresses-Red-Hat-Bug: #519237
Signed-off-by: Karel Zak <kzak@redhat.com>
if (access(init, X_OK))
warn("cannot access %s", init);
- /* get session leader */
- setsid();
-
- /* set controlling terminal */
- if (ioctl (0, TIOCSCTTY, 1))
- warn("failed to TIOCSCTTY");
-
execv(init, initargs);
err(EXIT_FAILURE, "failed to execute %s", init);
}