diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-10-01 01:38:11 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-10-01 01:38:11 -0400 |
commit | 8a77011c10b05815f7d7cb903b2ff05d2552d644 (patch) | |
tree | 6051c43881c986d94b726e4b15283f560d4966b7 | |
parent | 77d0c1b2a55c1af31cce4df68da7bf93c8155111 (diff) | |
download | net-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -768,7 +768,7 @@ main(int argc, char *argv[]) tty_close(); if(extcmd) /* external command on exit */ - system(extcmd); + exit(system(extcmd)); } exit(0); } |