Add support for ut_exit

This commit is contained in:
Todd C. Miller
2011-03-15 16:18:33 -04:00
parent 3506f01077
commit 2041d39db7
6 changed files with 44 additions and 7 deletions

View File

@@ -118,7 +118,7 @@ cleanup(int gotsignal)
#ifdef HAVE_SELINUX
selinux_restore_tty();
#endif
utmp_logout(slavename); /* XXX - only if CD_SET_UTMP */
utmp_logout(slavename, 0); /* XXX - only if CD_SET_UTMP */
}
/*
@@ -655,7 +655,7 @@ pty_close(struct command_status *cstat)
}
}
}
utmp_logout(slavename); /* XXX - only if CD_SET_UTMP */
utmp_logout(slavename, cstat->type == CMD_WSTATUS ? cstat->val : 0); /* XXX - only if CD_SET_UTMP */
}
/*