chiark
/
gitweb
/
~mdw
/
misc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
locking.c: Use shell convention to report child killed by a signal.
[misc]
/
locking.c
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 -------------------------------------------------*/