|
Line 0
Link Here
|
|
|
1 |
--- src/libutil/util.cc.orig 2021-02-07 15:52:25 UTC |
| 2 |
+++ src/libutil/util.cc |
| 3 |
@@ -910,7 +910,7 @@ void killUser(uid_t uid) |
| 4 |
#else |
| 5 |
if (kill(-1, SIGKILL) == 0) break; |
| 6 |
#endif |
| 7 |
- if (errno == ESRCH) break; /* no more processes */ |
| 8 |
+ if (errno == ESRCH || errno == EPERM) break; /* no more processes */ |
| 9 |
if (errno != EINTR) |
| 10 |
throw SysError(format("cannot kill processes for uid '%1%'") % uid); |
| 11 |
} |