crash on fork in taint mode

Y

Yohan N. Leder

Hello. I'm using ActivePerl 5.8.8 build 817 and Apache2 for Windows. The
script below crashes on fork() when I run it in taint mode (not if I
remove -T).

#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
my $pid = fork();
die "can't fork: $!\n" unless defined $pid;
if (!$pid){print "<p>child in progress...</p>"; exit 0;}
print "<p>parent in progress...</p>";
exit 0;

I don't even get the "can't fork" error message, the script crashes on
the line above with a raw perl.exe exception.

Did you seen something like this ?
 
B

Brian McCauley

Yohan said:
So, what's the workaround ?

That would very much depend on why you are forking. Particularly
baring in mind that this is windows so you aren't really getting proper
fork() semantics anyhow. Maybe you could use system() or
Win32::process.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

crash on async in taint mode 4
fork and taint 5
fork/exec question 6
fork and blocking... 3
issue with multiprocess - fork 2
Problem with fork on some RHEL servers 0
fork() & pipe() 3
problem with fork 8

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top