/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 76 by dpavlin, Thu Jul 30 23:57:19 2009 UTC revision 77 by dpavlin, Fri Jul 31 14:42:45 2009 UTC
# Line 97  sub start_stop { Line 97  sub start_stop {
97          warn "start_stop $daemon $pid pids: ",dump( $pids );          warn "start_stop $daemon $pid pids: ",dump( $pids );
98    
99          if ( $pid =~ m{^\d+$} ) {          if ( $pid =~ m{^\d+$} ) {
100                  warn "kill 9 $pid";                  my $pstree = `pstree -p $pid`;
101                  kill 9, $pid;                  my @pids = $pstree =~ m{\((\d+)\)}g;
102                    warn "pstree $pstree pids ",dump( @pids );
103                    kill 1, $_ foreach reverse @pids;
104                  $pids->{$daemon} = 'stopped';                  $pids->{$daemon} = 'stopped';
105                  return qq|$daemon pid $pid stopped|;                  return qq|$daemon pid $pid stopped|;
106          } else {          } else {

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.26