Commit 507a173f authored by Andreas Schwab's avatar Andreas Schwab
Browse files

Don't ignore SIGPROF in subprocesses

* process.c (create_process): Reset SIGPROF handler in the child.
* callproc.c (call_process): Likewise.
parent df183459
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.
......
......@@ -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);
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment