From: Mark Wooding Date: Sun, 24 Apr 2016 22:30:30 +0000 (+0100) Subject: locking.c: Use shell convention to report child killed by a signal. X-Git-Tag: 1.4.2~1^2~2 X-Git-Url: https://git.distorted.org.uk/~mdw/misc/commitdiff_plain/0f4f1fb606d18e2c2e157f008e0dc7e4a03683d5 locking.c: Use shell convention to report child killed by a signal. --- diff --git a/locking.c b/locking.c index b358a59..e7acb6c 100644 --- a/locking.c +++ b/locking.c @@ -214,7 +214,7 @@ doneopts: fcntl(fd, F_SETLK, &l); close(fd); if (WIFEXITED(rc)) exit(WEXITSTATUS(rc)); - else exit(255); + else exit(128 + WTERMSIG(rc)); } /*----- That's all, folks -------------------------------------------------*/