Fix background jobs that don't request TTY access
- Background jobs will
close()
theSTDIN
file descriptor. -
dup()
ing aclose()
'd file descriptor will fail - Allow that failure to happen
close()
the STDIN
file descriptor.dup()
ing a close()
'd file descriptor will fail