summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-10-01 01:38:11 -0400
committerMike Frysinger <vapier@gentoo.org>2012-10-01 01:38:11 -0400
commit8a77011c10b05815f7d7cb903b2ff05d2552d644 (patch)
tree6051c43881c986d94b726e4b15283f560d4966b7
parent77d0c1b2a55c1af31cce4df68da7bf93c8155111 (diff)
downloadnet-tools-8a77011c10b05815f7d7cb903b2ff05d2552d644.tar.gz
net-tools-8a77011c10b05815f7d7cb903b2ff05d2552d644.tar.bz2
net-tools-8a77011c10b05815f7d7cb903b2ff05d2552d644.zip
slattach: pass up exit status of shell command
This is partially to fix a build warning: slattach.c: In function 'main': slattach.c:771:9: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] And partially because I think it's the right thing to do. Otherwise there's no way for people to check the exit status of the command they told slattach to run. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--slattach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slattach.c b/slattach.c
index 6d21465..4132fd2 100644
--- a/slattach.c
+++ b/slattach.c
@@ -768,7 +768,7 @@ main(int argc, char *argv[])
tty_close();
if(extcmd) /* external command on exit */
- system(extcmd);
+ exit(system(extcmd));
}
exit(0);
}