summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlex <frostynova@gmail.com>2011-09-02 11:04:23 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-09-02 11:32:30 -0500
commit6d5b452ef5ef335821bd86eb9ad574acaa774f7b (patch)
tree9a6be14546e10ee74fca1eedda5fa295402d68ee /src
parent7a6dbedf38e1eeffcbb36b7d77a67c56566d0409 (diff)
downloadopenrc-6d5b452ef5ef335821bd86eb9ad574acaa774f7b.tar.gz
openrc-6d5b452ef5ef335821bd86eb9ad574acaa774f7b.tar.bz2
openrc-6d5b452ef5ef335821bd86eb9ad574acaa774f7b.tar.xz
Do not ignore return code for custom script functions
X-Gentoo-Bug: 380317 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380317
Diffstat (limited to 'src')
-rw-r--r--src/rc/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 8278f5b..07bcfe7 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1346,7 +1346,7 @@ runscript(int argc, char **argv)
strerror(errno));
unhotplug();
} else
- svc_exec(optarg, NULL);
+ retval = svc_exec(optarg, NULL);
/* We should ensure this list is empty after
* an action is done */