chiark
/
gitweb
/
~mdw
/
misc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
df6e37e
)
locking.c: Use shell convention to report child killed by a signal.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Apr 2016 22:30:30 +0000
(23:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 29 Apr 2016 00:16:23 +0000
(
01:16
+0100)
locking.c
patch
|
blob
|
blame
|
history
diff --git
a/locking.c
b/locking.c
index b358a59a5db2c55409b1e3cb79528f88f9b4f220..e7acb6c18af783ab9d622448fa43d8788de0e75f 100644
(file)
--- 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 -------------------------------------------------*/