blob: fce51bd1d0e364801175f581f3aa4a1a058572d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* See LICENSE file for copyright and license details. */
#include "internal.h"
void
liberror_raise_failed(int sig)
{
const char *desc = "";
if (errno == EINVAL)
desc = "Invalid signal number";
liberror_set_error_errno(desc, "raise", errno);
(void) sig;
}
int
liberror_raise(int sig)
{
if (!raise(sig))
return 0;
liberror_save_backtrace(NULL);
liberror_raise_failed(sig);
return -1;
}
|