summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2015-10-25 18:03:17 +0000
committerguenther <>2015-10-25 18:03:17 +0000
commitc7d9dee1c55f970d6a7de4e02fee38111ee55145 (patch)
tree82814604bffa0d2441e6e917907795c47c01780c /src
parentf99a409614d6c4522947819dc74a336ee3815b6c (diff)
downloadopenbsd-c7d9dee1c55f970d6a7de4e02fee38111ee55145.tar.gz
openbsd-c7d9dee1c55f970d6a7de4e02fee38111ee55145.tar.bz2
openbsd-c7d9dee1c55f970d6a7de4e02fee38111ee55145.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 'src')
-rw-r--r--src/lib/libc/stdlib/atexit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/atexit.c b/src/lib/libc/stdlib/atexit.c
index 4ccf84562c..a44de37c88 100644
--- a/src/lib/libc/stdlib/atexit.c
+++ b/src/lib/libc/stdlib/atexit.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atexit.c,v 1.22 2015/10/25 18:01:24 guenther Exp $ */ 1/* $OpenBSD: atexit.c,v 1.23 2015/10/25 18:03:17 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Daniel Hartmeier 3 * Copyright (c) 2002 Daniel Hartmeier
4 * All rights reserved. 4 * All rights reserved.
@@ -41,6 +41,10 @@
41struct atexit *__atexit; 41struct atexit *__atexit;
42static int restartloop; 42static int restartloop;
43 43
44/* define and initialize the list */
45struct atfork_listhead _atfork_list = TAILQ_HEAD_INITIALIZER(_atfork_list);
46
47
44/* 48/*
45 * Function pointers are stored in a linked list of pages. The list 49 * Function pointers are stored in a linked list of pages. The list
46 * is initially empty, and pages are allocated on demand. The first 50 * is initially empty, and pages are allocated on demand. The first