diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index e312c0b41..3660d788f 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -262,7 +262,7 @@ make_new_session( | |||
262 | BB_EXECVP(loginpath, (char **)login_argv); | 262 | BB_EXECVP(loginpath, (char **)login_argv); |
263 | /* _exit is safer with vfork, and we shouldn't send message | 263 | /* _exit is safer with vfork, and we shouldn't send message |
264 | * to remote clients anyway */ | 264 | * to remote clients anyway */ |
265 | _exit(1); /*bb_perror_msg_and_die("execv %s", loginpath);*/ | 265 | _exit(EXIT_FAILURE); /*bb_perror_msg_and_die("execv %s", loginpath);*/ |
266 | } | 266 | } |
267 | 267 | ||
268 | /* Must match getopt32 string */ | 268 | /* Must match getopt32 string */ |
@@ -281,7 +281,7 @@ free_session(struct tsession *ts) | |||
281 | struct tsession *t = sessions; | 281 | struct tsession *t = sessions; |
282 | 282 | ||
283 | if (option_mask32 & OPT_INETD) | 283 | if (option_mask32 & OPT_INETD) |
284 | exit(0); | 284 | exit(EXIT_SUCCESS); |
285 | 285 | ||
286 | /* Unlink this telnet session from the session list */ | 286 | /* Unlink this telnet session from the session list */ |
287 | if (t == ts) | 287 | if (t == ts) |
@@ -325,7 +325,7 @@ free_session(struct tsession *ts) | |||
325 | 325 | ||
326 | #else /* !FEATURE_TELNETD_STANDALONE */ | 326 | #else /* !FEATURE_TELNETD_STANDALONE */ |
327 | 327 | ||
328 | /* Used in main() only, thus "return 0" actually is exit(0). */ | 328 | /* Used in main() only, thus "return 0" actually is exit(EXIT_SUCCESS). */ |
329 | #define free_session(ts) return 0 | 329 | #define free_session(ts) return 0 |
330 | 330 | ||
331 | #endif | 331 | #endif |