diff --git a/forkpty-aix.c b/forkpty-aix.c index db1c3d9..2cb5169 100644 --- a/forkpty-aix.c +++ b/forkpty-aix.c @@ -50,8 +50,7 @@ pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) close(fd); } - if (setsid() < 0) - return -1; + setsid(); fd = open(_PATH_TTY, O_RDWR|O_NOCTTY); if (fd >= 0)