summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbje <bje>1998-07-25 12:45:40 +0000
committerbje <bje>1998-07-25 12:45:40 +0000
commitcb53662d7bc60f56f4bdeddc1ceb63bfeda4098f (patch)
tree89a024a6c85d212496d3a47ce599b32f543a9aa0
parent860f5268e2d230e4fc04ab588f74ea5e05bab44a (diff)
1998-07-25 Ben Elliston <bje@cygnus.com>
* fork.c (fork): Autoconfiscate.
-rw-r--r--ChangeLog4
-rw-r--r--fork.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f76175..18ed5cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1998-07-25 Ben Elliston <bje@cygnus.com>
+
+ * fork.c (fork): Autoconfiscate.
+
Sat Jul 25 00:00:13 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* create.c (_pthread_start_call): Set thread priority. Ensure our
diff --git a/fork.c b/fork.c
index 534effc..4ec53a7 100644
--- a/fork.c
+++ b/fork.c
@@ -78,6 +78,8 @@ pthread_atfork(void (*prepare)(void),
fork() over a version provided in more primitive libraries further down
the linker command line. */
+#if HAVE_PID_T && HAVE_FORK
+
pid_t
fork()
{
@@ -87,7 +89,7 @@ fork()
_pthread_handler_pop_all(_PTHREAD_FORKPREPARE_STACK,
_PTHREAD_HANDLER_EXECUTE);
- /* Now call Cygwin32's fork(). */
+ /* Now call the real fork(). */
if ((pid = _fork()) > 0)
{
@@ -126,3 +128,5 @@ fork()
/* Not reached. */
}
+
+#endif /* HAVE_PID_T && HAVE_FORK */