summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-05-05 13:59:47 +0300
committerDan McDonald <danmcd@omniti.com>2017-05-06 15:06:22 -0400
commit4ac5eacf59e3146224496b826f32663415769c4c (patch)
tree98f23872f4b147961fa4f31a7df85750de4833fc
parent9cdf9e12f0c6a1d10a3583d36c9a167cf71f48f4 (diff)
downloadillumos-joyent-4ac5eacf59e3146224496b826f32663415769c4c.tar.gz
8161 aw: this statement may fall through
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/tools/aw/aw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/tools/aw/aw.c b/usr/src/tools/aw/aw.c
index ba7d663187..32c7b72145 100644
--- a/usr/src/tools/aw/aw.c
+++ b/usr/src/tools/aw/aw.c
@@ -285,6 +285,7 @@ filter(int pipein, int pipeout)
break;
case -1:
perror("fork");
+ exit(1);
default:
return (pid);
}
@@ -410,6 +411,7 @@ invoke(char **argv, int pipein, int pipeout)
break;
case -1:
perror("fork");
+ exit(1);
default:
return (pid);
}