From 40e12f6ba026af9c24d5c3d8e36512719ed5faee Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 11 Mar 2008 15:00:16 +0000 Subject: RC_SERVICE now points to the service file, so daemons can recall us directly. --- src/rc/start-stop-daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rc/start-stop-daemon.c') 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; -- cgit v1.2.3