aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2008-08-21 07:36:17 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2008-08-21 07:36:17 +0000
commit7f15c32d768611f7b0a3fe0dad95a0a9fffd0c04 (patch)
tree3fa4413e433985a4437455ae8b767955695e9a81 /usr.bin
parent503b743566928388aed3227faac48233cb1c611c (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lockf/lockf.15
-rw-r--r--usr.bin/lockf/lockf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/lockf/lockf.1 b/usr.bin/lockf/lockf.1
index e8ce3ff02f59..6e2e06eae588 100644
--- a/usr.bin/lockf/lockf.1
+++ b/usr.bin/lockf/lockf.1
@@ -138,6 +138,11 @@ command line.
A system call (e.g.,
.Xr fork 2 )
failed unexpectedly.
+.It Dv EX_SOFTWARE
+The
+.Ar command
+did not exit normally,
+but may have been signaled or stopped.
.El
.Sh SEE ALSO
.Xr flock 2 ,
diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c
index 843f06115682..368eed0ee4cd 100644
--- a/usr.bin/lockf/lockf.c
+++ b/usr.bin/lockf/lockf.c
@@ -151,7 +151,7 @@ main(int argc, char **argv)
signal(SIGTERM, killed);
if (waitpid(child, &status, 0) == -1)
err(EX_OSERR, "waitpid failed");
- return (WIFEXITED(status) ? WEXITSTATUS(status) : 1);
+ return (WIFEXITED(status) ? WEXITSTATUS(status) : EX_SOFTWARE);
}
/*