aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-01-05 15:37:58 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-01-05 15:37:58 +0100
commitda9212667c99f2f2121747c4715d067deb7c155b (patch)
tree66a670e6d78ca899a454a42228abbbc2740fad0d /loginutils
parent08b90a9d10f2f712c6e16c118328d85930762b92 (diff)
downloadbusybox-da9212667c99f2f2121747c4715d067deb7c155b.tar.gz
libbb: code shrink by factoring out common update_utmp_DEAD_PROCESS
function old new delta update_utmp_DEAD_PROCESS - 17 +17 telnetd_main 1685 1674 -11 mark_terminated 56 45 -11 handle_sigchld 74 63 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index a4b19ccfc..b9d910331 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -454,7 +454,7 @@ int login_main(int argc UNUSED_PARAM, char **argv)
else {
if (safe_waitpid(child_pid, NULL, 0) == -1)
bb_perror_msg("waitpid");
- update_utmp(child_pid, DEAD_PROCESS, NULL, NULL, NULL);
+ update_utmp_DEAD_PROCESS(child_pid);
}
IF_PAM(login_pam_end(pamh);)
return 0;