diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-29 21:15:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-29 21:15:55 +0000 |
commit | f9076603b6939d18addee72664abdd41bae3fe47 (patch) | |
tree | aa38931690e69cb605f9213cb46780c0616d0b44 /usr.bin/ssh/pty.c | |
parent | bd42b4ae82b68c101d7026b390103e5c550cf0f7 (diff) |
we have setsid
Diffstat (limited to 'usr.bin/ssh/pty.c')
-rw-r--r-- | usr.bin/ssh/pty.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/ssh/pty.c b/usr.bin/ssh/pty.c index 189c570bcbf..a76a7a97c8e 100644 --- a/usr.bin/ssh/pty.c +++ b/usr.bin/ssh/pty.c @@ -14,7 +14,7 @@ Allocating a pseudo-terminal, and making it the controlling tty. */ #include "includes.h" -RCSID("$Id: pty.c,v 1.1 1999/09/26 20:53:36 deraadt Exp $"); +RCSID("$Id: pty.c,v 1.2 1999/09/29 21:15:54 deraadt Exp $"); #include "pty.h" #include "ssh.h" @@ -246,14 +246,8 @@ void pty_make_controlling_tty(int *ttyfd, const char *ttyname) close(fd); } #endif /* TIOCNOTTY */ -#ifdef HAVE_SETSID -#ifdef ultrix - setpgrp(0, 0); -#else /* ultrix */ if (setsid() < 0) error("setsid: %.100s", strerror(errno)); -#endif /* ultrix */ -#endif /* HAVE_SETSID */ /* Verify that we are successfully disconnected from the controlling tty. */ fd = open("/dev/tty", O_RDWR|O_NOCTTY); |