File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 2929#include <signal.h>
3030#endif
3131
32- #if defined(HAVE_VFORK_H )
33- #include <vfork.h>
34- #endif
35-
3632#include <Rts.h>
3733
38- #if defined(HAVE_WORKING_VFORK )
39- #define myfork vfork
40- #elif defined(HAVE_WORKING_FORK )
34+ #if defined(HAVE_WORKING_FORK )
4135#define myfork fork
4236// We don't need a fork command on Windows
4337#else
@@ -152,7 +146,7 @@ do_spawn_fork (char *const args[],
152146 }
153147#endif
154148
155- int pid = myfork ();
149+ int pid = fork ();
156150 switch (pid )
157151 {
158152 case -1 :
@@ -164,10 +158,6 @@ do_spawn_fork (char *const args[],
164158 return -1 ;
165159
166160 case 0 :
167- // WARNING! We may now be in the child of vfork(), and any
168- // memory we modify below may also be seen in the parent
169- // process.
170-
171161 close (forkCommunicationFds [0 ]);
172162 fcntl (forkCommunicationFds [1 ], F_SETFD , FD_CLOEXEC );
173163
Original file line number Diff line number Diff line change 33## unreleased
44
55* Fix deadlock when waiting for process completion and process jobs [ #273 ] ( https://github.com/haskell/process/issues/273 )
6- * Support delegate_ctlc on Windows. [ #278 ] ( https://github.com/haskell/process/pull/278 )
6+ * Support ` delegate_ctlc ` on Windows. [ #278 ] ( https://github.com/haskell/process/pull/278 )
7+ * Drop support for ` vfork ` [ #261 ] ( https://github.com/haskell/process/pull/261 )
78
89## 1.6.17.0 * February 2023*
910
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ AC_CONFIG_HEADERS([include/HsProcessConfig.h])
77
88AC_PROG_CC
99
10- dnl ** Working vfork ?
10+ dnl ** Working fork ?
1111AC_FUNC_FORK
1212
1313# check for specific header (.h) files that we are interested in
You can’t perform that action at this time.
0 commit comments