emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/emacs.c,v


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/emacs.c,v
Date: Mon, 04 Dec 2006 12:27:10 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kim F. Storm <kfstorm>  06/12/04 12:27:09

Index: emacs.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/emacs.c,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -b -r1.392 -r1.393
--- emacs.c     2 Nov 2006 16:12:05 -0000       1.392
+++ emacs.c     4 Dec 2006 12:27:09 -0000       1.393
@@ -361,9 +361,9 @@
 #endif
 
 
-#ifdef SIGUSR1
+#if defined (SIGUSR1) || defined (SIGUSR2)
 SIGTYPE
-handle_USR1_signal (sig)
+handle_user_signal (sig)
      int sig;
 {
   struct input_event buf;
@@ -374,25 +374,10 @@
   buf.frame_or_window = selected_frame;
 
   kbd_buffer_store_event (&buf);
-}
-#endif /* SIGUSR1 */
-
-#ifdef SIGUSR2
-SIGTYPE
-handle_USR2_signal (sig)
-     int sig;
-{
-  struct input_event buf;
-
-  SIGNAL_THREAD_CHECK (sig);
-  bzero (&buf, sizeof buf);
-  buf.kind = USER_SIGNAL_EVENT;
-  buf.code = 1;
-  buf.frame_or_window = selected_frame;
-
+  buf.code = sig;
   kbd_buffer_store_event (&buf);
 }
-#endif /* SIGUSR2 */
+#endif
 
 /* Handle bus errors, invalid instruction, etc.  */
 SIGTYPE
@@ -1226,10 +1211,10 @@
       signal (SIGILL, fatal_error_signal);
       signal (SIGTRAP, fatal_error_signal);
 #ifdef SIGUSR1
-      signal (SIGUSR1, handle_USR1_signal);
-#ifdef SIGUSR2
-      signal (SIGUSR2, handle_USR2_signal);
+      signal (SIGUSR1, handle_user_signal);
 #endif
+#ifdef SIGUSR2
+      signal (SIGUSR2, handle_user_signal);
 #endif
 #ifdef SIGABRT
       signal (SIGABRT, fatal_error_signal);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]