Blame SOURCES/xinetd-2.3.14-instances.patch

319196
--- xinetd-2.3.14/xinetd/access.c	2005-10-05 19:15:33.000000000 +0200
319196
+++ xinetd-2.3.14-mod/xinetd/access.c	2012-03-05 14:54:30.935416926 +0100
319196
@@ -73,6 +73,7 @@ static void cps_service_restart(void)
319196
    unsigned int i;
319196
    time_t nowtime;
319196
    const char *func = "cps_service_restart";
319196
+   int rs;
319196
 
319196
    nowtime = time(NULL);
319196
    for( i=0; i < pset_count( SERVICES(ps) ); i++ ) {
319196
@@ -84,8 +85,11 @@ static void cps_service_restart(void)
319196
       if( SVC_STATE(sp) == SVC_DISABLED ) {
319196
          scp = SVC_CONF( sp );
319196
          if ( SC_TIME_REENABLE(scp) <= nowtime ) {
319196
+            rs = SVC_RUNNING_SERVERS(sp);
319196
             /* re-enable the service */
319196
             if( svc_activate(sp) == OK ) {
319196
+               /* remember running servers after restart */
319196
+               SVC_RUNNING_SERVERS(sp) = rs;
319196
                msg(LOG_ERR, func,
319196
                "Activating service %s", SC_NAME(scp));
319196
             } else {