summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 0451d5a802..6a74b115de 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3874,6 +3874,10 @@ PP(pp_fork)
Pid_t childpid;
GV *tmpgv;
+# if defined(USE_ITHREADS) && !defined(HAS_PTHREAD_ATFORK)
+ Perl_croak(aTHX_ "No pthread_atfork() -- fork() too unsafe");
+# endif
+
EXTEND(SP, 1);
PERL_FLUSHALL_FOR_CHILD;
childpid = fork();