mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 09/20] uml: use SIG_IGN for empty sighandler
@ 2004-11-03 23:17 blaisorblade_spam
  2004-11-04  4:51 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: blaisorblade_spam @ 2004-11-03 23:17 UTC (permalink / raw)
  To: akpm; +Cc: jdike, linux-kernel, user-mode-linux-devel, cw, blaisorblade_spam


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){
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-05  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-03 23:17 [patch 09/20] uml: use SIG_IGN for empty sighandler blaisorblade_spam
2004-11-04  4:51 ` Jeff Dike
2004-11-04  4:11   ` [uml-devel] " Blaisorblade
2004-11-05  5:48     ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®