~nloomans/ft_select

2571843e455f1f30d23d0575c30c7426e4cca0ce — Noah Loomans 1 year, 8 months ago 22ba947
fix linux build
1 files changed, 8 insertions(+), 3 deletions(-)

M src/event.c
M src/event.c => src/event.c +8 -3
@@ 37,8 37,8 @@ static void						handle_continue(int signum)
static void						handle_exit_signal(int signum)
{
	terminal_configure(TERMINAL_CONFIGURE_RESTORE);
	ft_dprintf(STDERR_FILENO, "ft_select: received signal sig%s, exiting...\n",
		sys_signame[signum]);
	ft_dprintf(STDERR_FILENO, "ft_select: received '%s' signal, exiting...\n",
		sys_siglist[signum]);
	exit(1);
}



@@ 49,7 49,6 @@ const struct s_event_signal_map	g_event_signal_map[] = {
	[SIGILL]	= { .handler = handle_exit_signal },
	[SIGTRAP]	= { .handler = handle_exit_signal },
	[SIGABRT]	= { .handler = handle_exit_signal },
	[SIGEMT]	= { .handler = handle_exit_signal },
	[SIGFPE]	= { .handler = handle_exit_signal },
	[SIGBUS]	= { .handler = handle_exit_signal },
	[SIGSEGV]	= { .handler = handle_exit_signal },


@@ 73,6 72,12 @@ const struct s_event_signal_map	g_event_signal_map[] = {
		.global = &g_event_sigwinch,
		.action = action_update_size
	},

#ifdef SIGEMT

	[SIGEMT]	= { .handler = handle_exit_signal },

#endif
};

static void						handle_generic(int signum)