summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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