From 531a4786f096f5d31650131645857eb2fe6483d5 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 4 Apr 2017 16:19:10 +0200 Subject: [PATCH] Suicide prevention with corrupt Lockfile --- vere/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vere/unix.c b/vere/unix.c index 2634d08572..e6c0065e7c 100644 --- a/vere/unix.c +++ b/vere/unix.c @@ -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) ) {