From e44d3f1b40bc98f15421b49fe0f5f19c679de007 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 9 Apr 2012 21:07:23 +0200 Subject: [PATCH] Client: Simplify signal handling. There is no point in having a sighandler which just calls another one. This patch makes i9e_signal_dispatch() the handler for SIGINT and removes the pointless wrapper. --- client.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client.c b/client.c index 0ae01513..5f511708 100644 --- a/client.c +++ b/client.c @@ -459,11 +459,6 @@ static int client_i9e_line_handler(char *line) return 1; } -static void client_sighandler(int s) -{ - i9e_signal_dispatch(s); -} - static struct i9e_completer completers[] = { SERVER_COMPLETERS AFS_COMPLETERS @@ -494,7 +489,7 @@ __noreturn static void interactive_session(void) } ici.history_file = history_file; - act.sa_handler = client_sighandler; + act.sa_handler = i9e_signal_dispatch; sigemptyset(&act.sa_mask); act.sa_flags = 0; sigaction(SIGINT, &act, NULL); -- 2.39.5