]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't ignore SIGPROF in subprocesses
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 30 Jan 2014 17:22:30 +0000 (18:22 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 30 Jan 2014 17:22:30 +0000 (18:22 +0100)
* process.c (create_process): Reset SIGPROF handler in the child.
* callproc.c (call_process): Likewise.

src/ChangeLog
src/callproc.c
src/process.c

index ea9db78185f12508cbd90122b1acb2cd1a530925..f020386dc61915a441de51c1eb79f7aa92879742 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (create_process): Reset SIGPROF handler in the child.
+       * callproc.c (call_process): Likewise.
+
 2014-01-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xmenu.c (create_and_show_popup_menu): Port comment to C89.
index 886bfcedb005bab20146c22f44286b28d4fc0dc4..2ce4a7dcc0d2644a08b432ba16c5828a7badd116 100644 (file)
@@ -677,6 +677,10 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
 
       /* Emacs ignores SIGPIPE, but the child should not.  */
       signal (SIGPIPE, SIG_DFL);
+      /* Likewise for SIGPROF.  */
+#ifdef SIGPROF
+      signal (SIGPROF, SIG_DFL);
+#endif
 
       child_setup (filefd, fd_output, fd_error, new_argv, 0, current_dir);
     }
index 94033fa7ee3c528712eb303bcb791fb8d4d5dfbe..85470b66c3e7c2c89da633e5b25d06a5cd95864f 100644 (file)
@@ -1841,6 +1841,9 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
 
       signal (SIGINT, SIG_DFL);
       signal (SIGQUIT, SIG_DFL);
+#ifdef SIGPROF
+      signal (SIGPROF, SIG_DFL);
+#endif
 
       /* Emacs ignores SIGPIPE, but the child should not.  */
       signal (SIGPIPE, SIG_DFL);