summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-08-17 14:25:06 +0000
committerderaadt <deraadt@openbsd.org>2019-08-17 14:25:06 +0000
commit34060d49210e99f50067334b5944e9cc81e2f71c (patch)
tree4683d502b5a3fa9c98e753773016284124006134 /usr.bin/patch/util.h
parentdrm/i915: Fix wrong escape clock divisor init for GLK (diff)
downloadwireguard-openbsd-34060d49210e99f50067334b5944e9cc81e2f71c.tar.xz
wireguard-openbsd-34060d49210e99f50067334b5944e9cc81e2f71c.zip
signal handlers should not call exit() due to possibility of reentering
libc (stdio etc), instead do the unlink tasks then call _exit() instead ok millert
Diffstat (limited to 'usr.bin/patch/util.h')
-rw-r--r--usr.bin/patch/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/patch/util.h b/usr.bin/patch/util.h
index 6404eb21baf..a21929b4fa1 100644
--- a/usr.bin/patch/util.h
+++ b/usr.bin/patch/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.17 2015/07/26 14:32:19 millert Exp $ */
+/* $OpenBSD: util.h,v 1.18 2019/08/17 14:25:06 deraadt Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -45,6 +45,7 @@ void ignore_signals(void);
void makedirs(const char *, bool);
void version(void);
void my_exit(int) __attribute__((noreturn));
+void my_sigexit(int) __attribute__((noreturn));
/* in mkpath.c */
extern int mkpath(char *);