summaryrefslogtreecommitdiff
path: root/win32/perlhost.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-08 12:52:28 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-08 12:52:28 +0000
commit60fa28ff167ee89aee5425de954aa6183c50b55a (patch)
tree480657b809ab47023e4a6a9eae68ecd68f5ca88b /win32/perlhost.h
parente84ff256a2982e8c96a05c380a48c0d1a6cb3af9 (diff)
downloadperl-60fa28ff167ee89aee5425de954aa6183c50b55a.tar.gz
fork() failure to create pseudo process sets errno=EAGAIN and returns
undef on windows (from Clinton Pierce <clintp@geeksalad.org>) p4raw-id: //depot/perl@6093
Diffstat (limited to 'win32/perlhost.h')
-rw-r--r--win32/perlhost.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/perlhost.h b/win32/perlhost.h
index cac05b2832..51e125b848 100644
--- a/win32/perlhost.h
+++ b/win32/perlhost.h
@@ -1770,8 +1770,10 @@ PerlProcFork(struct IPerlProc* piPerl)
(LPVOID)new_perl, 0, &id);
# endif
PERL_SET_THX(aTHXo); /* XXX perl_clone*() set TLS */
- if (!handle)
- Perl_croak(aTHX_ "panic: pseudo fork() failed");
+ if (!handle) {
+ errno = EAGAIN;
+ return -1;
+ }
w32_pseudo_child_handles[w32_num_pseudo_children] = handle;
w32_pseudo_child_pids[w32_num_pseudo_children] = id;
++w32_num_pseudo_children;