in reply to Signal Handling, with system
#!/usr/bin/perl # PROGRAM "A" my $pid = fork(); if ( $pid ) { while (1) {sleep 3} } else { exec( "/tmp/junk.perl" ) } __END__ #!/usr/bin/perl # PROGRAM "B" system( "find / -ls > /tmp/junk.find 2>&1" ); # this takes a while __END__
system( "find / -ls > /tmp/junk.find 2>&1 &" );
You didn't say much about the system call issued in B to launch C; does it background C? Are you sure B is still running when you halt A?
Would it be practical for B to open( C, "process_C |"); or something like that? This way, when B closes the file handle, C is terminated.
|
|---|