summaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2009-04-30 16:45:18 +0100
committerRoy Marples <roy@marples.name>2009-04-30 16:45:18 +0100
commita1e40e9beb621dbe342515ee0380c67837112a61 (patch)
tree2d1913479a42fad20c36cd270cac176a2539003f /src/rc/runscript.c
parentb70501ef452e896b1164290e3575ef7d89926f07 (diff)
downloadopenrc-a1e40e9beb621dbe342515ee0380c67837112a61.tar.gz
openrc-a1e40e9beb621dbe342515ee0380c67837112a61.tar.bz2
openrc-a1e40e9beb621dbe342515ee0380c67837112a61.tar.xz
Fix parens
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index c2688ee..5dab676 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -586,8 +586,7 @@ svc_start(bool deps)
state = rc_service_state(service);
if (rc_yesno(getenv("IN_HOTPLUG")) || in_background) {
- if (! state & RC_SERVICE_INACTIVE &&
- ! state & RC_SERVICE_STOPPED)
+ if (!(state & (RC_SERVICE_INACTIVE | RC_SERVICE_STOPPED)))
exit(EXIT_FAILURE);
background = true;
rc_service_mark(service, RC_SERVICE_HOTPLUGGED);