From a66bbd4360ebf8b97872376e2ea0c2e7933c3e56 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 29 Sep 2022 12:52:57 +0200 Subject: [PATCH] Use SIGTRAP instead of the signal number in raise(). --- xs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs.h b/xs.h index 234a1d2..c44a8a0 100644 --- a/xs.h +++ b/xs.h @@ -38,7 +38,7 @@ typedef char d_char; #define _xs_blk_size(sz) ((((sz) + _XS_BLK_SIZE) / _XS_BLK_SIZE) * _XS_BLK_SIZE) void _xs_destroy(char **var); -#define xs_debug() raise(5) +#define xs_debug() raise(SIGTRAP) xstype xs_type(const char *data); int xs_size(const char *data); int xs_is_null(char *data);