Bash can start without warnings
This commit is contained in:
parent
62d67160d7
commit
02851bbeec
|
@ -59,6 +59,8 @@ int main(int argc, char **argv)
|
|||
die("fork failed");
|
||||
else if (exec_pid == 0) {
|
||||
close(pty_master_fd);
|
||||
if (setsid() < 0)
|
||||
die("setsid failed");
|
||||
int pty_slave_fd = open(pty_slave_name, O_RDWR);
|
||||
if (pty_slave_fd < 0)
|
||||
die("open failed");
|
||||
|
|
Loading…
Reference in New Issue