Changeset 0cbd6e9cba68eac5ff8f984acc9f8bb9a107a433 for lib
- Timestamp:
- 04/23/10 20:07:15 (3 years ago)
- git-parent:
- Files:
-
- lib/Resmon/Status.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lib/Resmon/Status.pm
r9b06619 r0cbd6e9 364 364 $self->{http_ip} = $ip; 365 365 366 $self->{parent_pid} = $$; 366 367 $self->{child} = fork(); 367 368 if($self->{child} == 0) { … … 504 505 sub DESTROY { 505 506 my $self = shift; 507 # Make sure we're really the parent process 508 return if ($self->{parent_pid} != $$); 506 509 my $child = $self->{child}; 507 if ($child) {510 if ($child) { 508 511 kill 15, $child; 509 512 sleep 1;
