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

Re^2: fork() interferring with backtick

by mkaiser67 (Initiate)
on Oct 16, 2013 at 18:30 UTC ( [id://1058533]=note: print w/replies, xml ) Need Help??


in reply to Re: fork() interferring with backtick
in thread fork() interferring with backtick

Specifically the backtick command line finds a list of .makelist files in the subdirectories of $dir - hence the array @makelists. What I am finding is the fork call truncates the @makelists in some cases, but repeatably in the same spot for particular directory calls. i know this by adding a print $makelist."\n", just before the ProcessMakeList call. however if i move the fork call before the backtick command the array is preserved.

Replies are listed 'Best First'.
Re^3: fork() interferring with backtick
by vsespb (Chaplain) on Oct 16, 2013 at 19:19 UTC
    If output from external command is truncated, maybe it's this bug (in perl 5.14 ):
    https://rt.perl.org/rt3/Ticket/Display.html?id=119097
    http://www.perlmonks.org/?node_id=1026468

    i.e. data received from pipe can be truncated if SIGnal received (and you have signal handler, thus you are affected). I suggest check $! after backtricks call.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found