diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index e4909b9a..a65e5cb1 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -110,7 +110,9 @@ sub _delete_user { die "Attempting to delete current user: $user\n"; } else { # This logs out user (so we can delete it) - system("pkill -u $user"); + system("pkill -HUP -U $user"); + sleep(1); + system("pkill -9 -U $user"); system("userdel $user") == 0 or die "userdel of $user failed: $?\n"; |