diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-08 12:52:28 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-08 12:52:28 +0000 |
commit | 60fa28ff167ee89aee5425de954aa6183c50b55a (patch) | |
tree | 480657b809ab47023e4a6a9eae68ecd68f5ca88b /pp_sys.c | |
parent | e84ff256a2982e8c96a05c380a48c0d1a6cb3af9 (diff) | |
download | perl-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 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3679,6 +3679,8 @@ PP(pp_fork) EXTEND(SP, 1); PERL_FLUSHALL_FOR_CHILD; childpid = PerlProc_fork(); + if (childpid == -1) + RETSETUNDEF; PUSHi(childpid); RETURN; # else |