Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Ignoring Child Processes And glob()

by barndoor (Pilgrim)
on Jul 28, 2000 at 15:37 UTC ( [id://24830]=note: print w/replies, xml ) Need Help??


in reply to Ingoring Child Processes And glob()

Here some more of the script to give you an idea of what I'm doing:
#!/usr/local/bin/perl -w use strict; sub executeStream($); $SIG{CHLD} = 'IGNORE'; # The glob below will work but the message detailed in my original pos +t will occur. my @fileList = glob("/mypath/*.log"); foreach my $logfile (@fileList) { print "Got logfile $logfile\n"; } executeStream(1); sub executeStream($) { my $childProcess; unless (defined($childProcess = fork())) { die "Could not fork new child process."; } unless($childProcess) { # Child process so lets exec the loader. exec("myprog " . $_[0]) or die "Could not exec FeedLoader.pl"; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found