util: handle errors in setting of signal handler as fatal

This commit is contained in:
Miroslav Lichvar
2018-08-01 11:59:00 +02:00
parent a8167b7959
commit 5bb2bf9361
2 changed files with 7 additions and 9 deletions

2
util.h
View File

@@ -161,7 +161,7 @@ extern Float UTI_FloatHostToNetwork(double x);
/* Set FD_CLOEXEC on descriptor */
extern int UTI_FdSetCloexec(int fd);
extern int UTI_SetQuitSignalsHandler(void (*handler)(int));
extern void UTI_SetQuitSignalsHandler(void (*handler)(int));
/* Get directory (as an allocated string) for a path */
extern char *UTI_PathToDir(const char *path);