diff options
author | Denis Vlasenko | 2007-04-10 15:42:06 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-10 15:42:06 +0000 |
commit | ff131b980d524a33d8a43cefe65e14f64a43f2da (patch) | |
tree | 82d252f04f9a8511be452dcd8b5e322c59653c72 /networking/telnetd.c | |
parent | 163516da3ae54a587fb476c621793bd206f380c2 (diff) | |
download | busybox-ff131b980d524a33d8a43cefe65e14f64a43f2da.zip busybox-ff131b980d524a33d8a43cefe65e14f64a43f2da.tar.gz |
style fixes. No code changes.
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 5c0463b..4ab6f56 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -285,8 +285,6 @@ make_new_session( /* make new process group */ setsid(); - tcsetpgrp(0, getpid()); - /* ^^^ strace says: "ioctl(0, TIOCSPGRP, [pid]) = -1 ENOTTY" -- ??! */ /* open the child's side of the tty. */ /* NB: setsid() disconnects from any previous ctty's. Therefore @@ -296,6 +294,7 @@ make_new_session( dup2(fd, 1); dup2(fd, 2); while (fd > 2) close(fd--); + tcsetpgrp(0, getpid()); /* comment? */ /* The pseudo-terminal allocated to the client is configured to operate in * cooked mode, and with XTABS CRMOD enabled (see tty(4)). */ |