Closed skaji closed 5 years ago
POSIX::setsid returns -1, not undef on failure:
❯ perl -MPOSIX -le 'my $ret = POSIX::setsid; print "$ret: $!"' -1: Operation not permitted
Hmm, https://metacpan.org/release/IO-Tty/source/Pty.pm#L96 POSIX::setsid is already called in IO::Pty->make_slave_controlling_terminal So POSIX::setsid called via IPC::Run::start always fails.
POSIX::setsid returns -1, not undef on failure: