Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
process
Commits
0a0c107b
Commit
0a0c107b
authored
Apr 27, 2013
by
ian@well-typed.com
Browse files
Small cleanup of how we handle using fork vs vfork
parent
017fe3fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
cbits/runProcess.c
View file @
0a0c107b
...
...
@@ -85,7 +85,7 @@ runInteractiveProcess (char *const args[],
// signal and keeps restarting indefinitely.
stopTimer
();
switch
(
pid
=
fork
())
switch
(
pid
=
my
fork
())
{
case
-
1
:
unblockUserSignals
();
...
...
include/runProcess.h
View file @
0a0c107b
...
...
@@ -29,8 +29,12 @@
#include <vfork.h>
#endif
#ifdef HAVE_VFORK
#define fork vfork
#if defined(HAVE_WORKING_VFORK)
#define myfork vfork
#elif defined(HAVE_WORKING_FORK)
#define myfork fork
#else
#error Cannot find a working fork command
#endif
#ifdef HAVE_SIGNAL_H
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment