diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-24 07:48:38 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-24 07:48:38 +0000 |
commit | c66416e633310f06dfbeaa655d3e2826d4c42dc6 (patch) | |
tree | 871022ef5bc45fdadb9027dd35c237840f023803 /libexec/ld.so/util.c | |
parent | a25395adead1f5541203d945e1c673202a0c6395 (diff) |
On fatal errors, kill ourselves with thrkill(0,9,NULL) instead of
simply exiting, via helper functions _dl_die(), _dl_diedie(), and
_dl_oom().
prompted by a complaint from jsing@
ok jsing@ deraadt@
Diffstat (limited to 'libexec/ld.so/util.c')
-rw-r--r-- | libexec/ld.so/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c index 53a5f58eb51..7910b09248f 100644 --- a/libexec/ld.so/util.c +++ b/libexec/ld.so/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.43 2016/08/12 20:39:01 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.44 2017/01/24 07:48:37 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -55,7 +55,7 @@ __stack_smash_handler(char func[], int damaged) _dl_strlcat(message, func, sizeof message); _dl_sendsyslog(message, _dl_strlen(message), LOG_CONS); - _dl_exit(127); + _dl_diedie(); } char * @@ -82,7 +82,7 @@ _dl_arc4randombuf(void *v, size_t buflen) while (buflen != 0) { if (reserve == 0) { if (_dl_getentropy(bytes, sizeof(bytes)) != 0) - _dl_exit(8); + _dl_die("no entropy"); reserve = sizeof(bytes); } if (buflen > reserve) |