mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +03:00
Suicide prevention with corrupt Lockfile
This commit is contained in:
parent
b8d8b4810c
commit
531a4786f0
@ -1356,7 +1356,7 @@ u3_unix_acquire(c3_c* pax_c)
|
||||
kill(getpid(), SIGTERM);
|
||||
sleep(1); c3_assert(0);
|
||||
}
|
||||
else {
|
||||
else if (pid_w != getpid()) {
|
||||
c3_w i_w;
|
||||
|
||||
if ( -1 != kill(pid_w, SIGTERM) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user