1 |
commit: 6d5b452ef5ef335821bd86eb9ad574acaa774f7b |
2 |
Author: Flex <frostynova <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 2 16:04:23 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 16:32:30 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=6d5b452e |
7 |
|
8 |
Do not ignore return code for custom script functions |
9 |
|
10 |
X-Gentoo-Bug: 380317 |
11 |
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380317 |
12 |
|
13 |
--- |
14 |
src/rc/runscript.c | 2 +- |
15 |
1 files changed, 1 insertions(+), 1 deletions(-) |
16 |
|
17 |
diff --git a/src/rc/runscript.c b/src/rc/runscript.c |
18 |
index 8278f5b..07bcfe7 100644 |
19 |
--- a/src/rc/runscript.c |
20 |
+++ b/src/rc/runscript.c |
21 |
@@ -1346,7 +1346,7 @@ runscript(int argc, char **argv) |
22 |
strerror(errno)); |
23 |
unhotplug(); |
24 |
} else |
25 |
- svc_exec(optarg, NULL); |
26 |
+ retval = svc_exec(optarg, NULL); |
27 |
|
28 |
/* We should ensure this list is empty after |
29 |
* an action is done */ |