Subversion Repositories DevTools

Rev

Rev 1040 | Rev 5398 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1040 Rev 3847
Line 206... Line 206...
206
 
206
 
207
#-------------------------------------------------------------------------------
207
#-------------------------------------------------------------------------------
208
# Function        : readConfig
208
# Function        : readConfig
209
#
209
#
210
# Description     : Re read the config file if it modification time has changed
210
# Description     : Re read the config file if it modification time has changed
211
#                   Not much happens if the cinfig is re-read
211
#                   Not much happens if the config is re-read
212
#                   Only a few of the attributes are used
212
#                   Only a few of the attributes are used
213
#
213
#
214
# Inputs          : Nothing
214
# Inputs          : Nothing
215
#
215
#
216
# Returns         : Nothing
216
# Returns         : Nothing
Line 309... Line 309...
309
        {
309
        {
310
            my $pid = $children{$entry}{pid};
310
            my $pid = $children{$entry}{pid};
311
    		$logger->logmsg('Signal HUP to child: ' . $pid);
311
    		$logger->logmsg('Signal HUP to child: ' . $pid);
312
            kill 1, $pid;
312
            kill 1, $pid;
313
        }
313
        }
-
 
314
	};
-
 
315
 
-
 
316
	$SIG{USR1} = sub {
-
 
317
		# On Force Archive Sync
-
 
318
		$logger->logmsg('Received SIGUSR1.');
-
 
319
        foreach my $entry ( keys %children )
314
        
320
        {
-
 
321
            my $pid = $children{$entry}{pid};
-
 
322
    		$logger->logmsg('Signal USR1 to child: ' . $pid);
-
 
323
            kill 'USR1', $pid;
-
 
324
        }
315
	};
325
	};
316
}
326
}
317
 
327