Changeset 312
- Timestamp:
- 05/04/07 23:42:55 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-filesystem/bin/StartAgent.pl
r131 r312 44 44 HoneyClient::Agent->destroy(); 45 45 46 # Wait for a small amount of time, in order for the killed process to release 47 # its control of the bound TCP port. 48 sleep 5; 49 46 50 $URL = HoneyClient::Agent->init(); 47 51 honeyclient/branches/exp/kindlund-filesystem/etc/honeyclient.xml
r310 r312 49 49 <!-- Note: This timeout should be long enough so that the Agent watchdog code will properly let the integrity checking code finish, before detecting a faulty timeout in processing. --> 50 50 <timeout description="Default timeout used for all communications between each module (in seconds)." default="900"> 51 180051 3600 52 52 </timeout> 53 53 <log_config description="The global Log4perl configuration file, used throughout all modules. This setting should not need to be changed." default="etc/honeyclient_log.conf"> honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent.pm
r310 r312 469 469 # the parent process... 470 470 if (defined($DAEMON_PID) && ($DAEMON_PID != 0)) { 471 print STDERR "Killing PID = " . $DAEMON_PID . "\n"; 471 472 # The Win32 version of kill() seems to only respond to SIGKILL(9). 472 $ret = kill(9, $DAEMON_PID); 473 # XXX: This doesn't work. 474 #$ret = kill(9, $DAEMON_PID); 475 476 # TODO: Need unit tests. 477 require Win32::Process; 478 Win32::Process::KillProcess($DAEMON_PID, 0); 479 $ret = 1; 473 480 } 474 481 if ($ret) {
