mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kpty: assume logoutx() and logout() clears the utmp record
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a380512281
commit
4edef2a067
1 changed files with 2 additions and 4 deletions
|
@ -560,12 +560,10 @@ void KPty::logout()
|
|||
str_ptr = sl_ptr + 1;
|
||||
}
|
||||
# endif
|
||||
# ifdef HAVE_LOGIN
|
||||
# ifdef HAVE_LOGINX
|
||||
# if defined(HAVE_LOGINX)
|
||||
::logoutx(str_ptr, 0, DEAD_PROCESS);
|
||||
# else
|
||||
# elif defined(HAVE_LOGIN)
|
||||
::logout(str_ptr);
|
||||
# endif
|
||||
# else
|
||||
# ifdef HAVE_UTMPX
|
||||
struct utmpx l_struct, *ut;
|
||||
|
|
Loading…
Add table
Reference in a new issue