aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2013-06-03 11:29:30 -0700
committerPaul Eggert2013-06-03 11:29:30 -0700
commit3d5ee10aa258a500e0b70b5eabe9d58cb3ab051e (patch)
tree37d030ec632685a294eb351851fdad8ce41800b0 /src/process.c
parent068922a2973033ea826b458a17f3e06cf6b44299 (diff)
downloademacs-3d5ee10aa258a500e0b70b5eabe9d58cb3ab051e.tar.gz
emacs-3d5ee10aa258a500e0b70b5eabe9d58cb3ab051e.zip
Fix minor problems found by static checking.
* data.c (pure_write_error): Use xsignal2, not Fsignal, as Fsignal might return. * eval.c (set_backtrace_debug_on_exit): Now static. (backtrace_p, backtrace_top, backtrace_next, record_in_backtrace): No longer inline. EXTERN_INLINE is needed only for functions defined in .h files. Reindent function header as per GNU style. (backtrace_p, backtrace_top, backtrace_next): Mark EXTERNALLY_VISIBLE so they don't get optimized away by the compiler or linker. Add extern decls to pacify gcc -Wall. * frame.c, frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Now static. * frame.c (free_monitors): Define only on platforms that need it. * nsterm.m (ns_term_init): * process.c (catch_child_signal): Don't worry about whether SIGCHLD is defined, as SIGCHLD is defined on all porting targets these days. * process.c, process.h (catch_child_signal): Make it extern only if NS_IMPL_GNUSTEP is defined.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 9df003fa3a3..8c4199e5eed 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7029,14 +7029,15 @@ integer or floating point values.
7029 return system_process_attributes (pid); 7029 return system_process_attributes (pid);
7030} 7030}
7031 7031
7032#ifndef NS_IMPL_GNUSTEP
7033static
7034#endif
7032void 7035void
7033catch_child_signal (void) 7036catch_child_signal (void)
7034{ 7037{
7035#ifdef SIGCHLD
7036 struct sigaction action; 7038 struct sigaction action;
7037 emacs_sigaction_init (&action, deliver_child_signal); 7039 emacs_sigaction_init (&action, deliver_child_signal);
7038 sigaction (SIGCHLD, &action, 0); 7040 sigaction (SIGCHLD, &action, 0);
7039#endif
7040} 7041}
7041 7042
7042 7043