summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwait.c b/pwait.c
index e6fde39..e5f6fde 100644
--- a/pwait.c
+++ b/pwait.c
@@ -180,7 +180,7 @@ usage:
 	for (n = m = 0; n < argc; n++) {
 		errno = 0;
 		pid = strtol(argv[n], &end, 10);
-		if (pid < 0 || *end || errno != 0) {
+		if (pid <= 0 || *end || errno != 0) {
 			fprintf(stderr, "%s: invalid process id\n", argv[n]);
 			continue;
 		}