Messages in this thread Patch in this message | | | Subject | [patch 09/20] uml: use SIG_IGN for empty sighandler | From | blaisorblade_spam@yahoo ... | Date | Thu, 04 Nov 2004 00:17:35 +0100 |
| |
Avoid creating a dummy no-op procedure instead of using SIG_IGN.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> ---
vanilla-linux-2.6.9-paolo/arch/um/drivers/chan_user.c | 6 +----- 1 files changed, 1 insertion(+), 5 deletions(-)
diff -puN arch/um/drivers/chan_user.c~uml-use-SIG_IGN-for-empty-handling arch/um/drivers/chan_user.c --- vanilla-linux-2.6.9/arch/um/drivers/chan_user.c~uml-use-SIG_IGN-for-empty-handling 2004-11-03 23:44:59.439523936 +0100 +++ vanilla-linux-2.6.9-paolo/arch/um/drivers/chan_user.c 2004-11-03 23:44:59.442523480 +0100 @@ -37,10 +37,6 @@ int generic_console_write(int fd, const return(err); } -static void winch_handler(int sig) -{ -} - struct winch_data { int pty_fd; int pipe_fd; @@ -63,7 +59,7 @@ static int winch_thread(void *arg) printk("winch_thread : failed to write synchronization " "byte, err = %d\n", -count); - signal(SIGWINCH, winch_handler); + signal(SIGWINCH, SIG_IGN); sigfillset(&sigs); sigdelset(&sigs, SIGWINCH); if(sigprocmask(SIG_SETMASK, &sigs, NULL) < 0){ _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |