diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:42:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:42:06 +0000 |
commit | ff131b980d524a33d8a43cefe65e14f64a43f2da (patch) | |
tree | 82d252f04f9a8511be452dcd8b5e322c59653c72 /networking | |
parent | 163516da3ae54a587fb476c621793bd206f380c2 (diff) | |
download | busybox-w32-ff131b980d524a33d8a43cefe65e14f64a43f2da.tar.gz busybox-w32-ff131b980d524a33d8a43cefe65e14f64a43f2da.tar.bz2 busybox-w32-ff131b980d524a33d8a43cefe65e14f64a43f2da.zip |
style fixes. No code changes.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/route.c | 2 | ||||
-rw-r--r-- | networking/telnetd.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/networking/route.c b/networking/route.c index 069739006..5b3e68b4c 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -49,7 +49,7 @@ | |||
49 | #define RTF_REJECT 0x0200 /* Reject route */ | 49 | #define RTF_REJECT 0x0200 /* Reject route */ |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #if defined (SIOCADDRTOLD) || defined (RTF_IRTT) /* route */ | 52 | #if defined(SIOCADDRTOLD) || defined(RTF_IRTT) /* route */ |
53 | #define HAVE_NEW_ADDRT 1 | 53 | #define HAVE_NEW_ADDRT 1 |
54 | #endif | 54 | #endif |
55 | 55 | ||
diff --git a/networking/telnetd.c b/networking/telnetd.c index 5c0463bab..4ab6f5656 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -285,8 +285,6 @@ make_new_session( | |||
285 | 285 | ||
286 | /* make new process group */ | 286 | /* make new process group */ |
287 | setsid(); | 287 | setsid(); |
288 | tcsetpgrp(0, getpid()); | ||
289 | /* ^^^ strace says: "ioctl(0, TIOCSPGRP, [pid]) = -1 ENOTTY" -- ??! */ | ||
290 | 288 | ||
291 | /* open the child's side of the tty. */ | 289 | /* open the child's side of the tty. */ |
292 | /* NB: setsid() disconnects from any previous ctty's. Therefore | 290 | /* NB: setsid() disconnects from any previous ctty's. Therefore |
@@ -296,6 +294,7 @@ make_new_session( | |||
296 | dup2(fd, 1); | 294 | dup2(fd, 1); |
297 | dup2(fd, 2); | 295 | dup2(fd, 2); |
298 | while (fd > 2) close(fd--); | 296 | while (fd > 2) close(fd--); |
297 | tcsetpgrp(0, getpid()); /* comment? */ | ||
299 | 298 | ||
300 | /* The pseudo-terminal allocated to the client is configured to operate in | 299 | /* The pseudo-terminal allocated to the client is configured to operate in |
301 | * cooked mode, and with XTABS CRMOD enabled (see tty(4)). */ | 300 | * cooked mode, and with XTABS CRMOD enabled (see tty(4)). */ |