diff options
author | Roy Marples <roy@marples.name> | 2008-03-11 15:00:16 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-11 15:00:16 +0000 |
commit | 40e12f6ba026af9c24d5c3d8e36512719ed5faee (patch) | |
tree | 06251344538a482a801e8750a3a0068ef5f5594a /src/rc/start-stop-daemon.c | |
parent | 568ec5f343912f4b63a2db769da68e842a239ae5 (diff) |
RC_SERVICE now points to the service file, so daemons can recall us directly.
Diffstat (limited to 'src/rc/start-stop-daemon.c')
-rw-r--r-- | src/rc/start-stop-daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index d0e168af..9ffeba05 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -966,7 +966,8 @@ int start_stop_daemon (int argc, char **argv) /* Clean the environment of any RC_ variables */ STRLIST_FOREACH (environ, env, i) { - if (strncmp (env, "RC_", 3) == 0 || + if ((strncmp (env, "RC_", 3) == 0 && + strncmp (env, "RC_SERVICE=", strlen ("RC_SERVICE=")) != 0) || strncmp (env, "SSD_NICELEVEL=", strlen ("SSD_NICELEVEL=")) == 0) continue; |