summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-25 18:03:17 +0000
committerguenther <guenther@openbsd.org>2015-10-25 18:03:17 +0000
commit0b0bfcdbef423a0cd2e0c64ebef5ff892124e7cf (patch)
treeba3ec4f334a8e73984a8651ff6cfc3507d0396df /lib/libc/sys
parentHide __atexit and __atexit_register_cleanup() (diff)
downloadwireguard-openbsd-0b0bfcdbef423a0cd2e0c64ebef5ff892124e7cf.tar.xz
wireguard-openbsd-0b0bfcdbef423a0cd2e0c64ebef5ff892124e7cf.zip
Move the _atfork_list definition to atexit.c so that the fork syscall stub
doesn't get pulled into all static executables ok millert@ jca@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/w_fork.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/sys/w_fork.c b/lib/libc/sys/w_fork.c
index 1c6080e0cbd..89415491f82 100644
--- a/lib/libc/sys/w_fork.c
+++ b/lib/libc/sys/w_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w_fork.c,v 1.1 2015/04/07 01:27:07 guenther Exp $ */
+/* $OpenBSD: w_fork.c,v 1.2 2015/10/25 18:03:17 guenther Exp $ */
/*
* Copyright (c) 2008 Kurt Miller <kurt@openbsd.org>
@@ -34,9 +34,6 @@
#include "thread_private.h"
#include "atfork.h"
-/* define and initialize the list */
-struct atfork_listhead _atfork_list = TAILQ_HEAD_INITIALIZER(_atfork_list);
-
pid_t _thread_fork(void);
pid_t