From 6df81d1188771f0e9c86c5cb6d7282650c1fc353 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Thu, 21 Aug 2008 07:36:17 +0000 Subject: Lockf was exiting with status 1 if the command did not exit normally. This is easy to confuse with the actual exit status of the program. Instead exit with EX_SOFTWARE if the command doesn't exit normally. MFC after: 1 month --- usr.bin/lockf/lockf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/lockf/lockf.c') diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 843f061..368eed0 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); } /* -- cgit v1.1