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/library.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/library.c')
-rw-r--r-- | libexec/ld.so/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c index ac63b964dd6..adb57041267 100644 --- a/libexec/ld.so/library.c +++ b/libexec/ld.so/library.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library.c,v 1.79 2016/08/12 20:39:01 deraadt Exp $ */ +/* $OpenBSD: library.c,v 1.80 2017/01/24 07:48:36 guenther Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -236,7 +236,7 @@ _dl_tryload_shlib(const char *libname, int type, int flags) res = NULL; /* silence gcc */ next_load = _dl_calloc(1, sizeof(struct load_list)); if (next_load == NULL) - _dl_exit(7); + _dl_oom(); next_load->next = load_list; load_list = next_load; next_load->start = start; |