diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-06-01 16:17:56 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-06-01 16:17:56 -0700 |
commit | 5c2b9423c56c2b7e3266d34be45cac359d2c3c26 (patch) | |
tree | 9cbbfbd6e9b796e480f1e393f2cbf98683596715 /src/callproc.c | |
parent | 89187af1bdef9f1f0e2960e4da5f2052c654aa24 (diff) | |
download | emacs-5c2b9423c56c2b7e3266d34be45cac359d2c3c26.tar.gz |
Port signal-handling to DragonFly BSD.
* callproc.c, sysdep.c (block_child_signal, unblock_child_signal):
Move implementations from callproc.c to sysdep.c.
* process.h, syssignal.h (block_child_signal, unblock_child_signal):
Move declaratations from process.h to syssignal.h.
Fixes: debbugs:17646
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/callproc.c b/src/callproc.c index 0506bf53a25..38cde017187 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -105,30 +105,6 @@ enum static Lisp_Object call_process (ptrdiff_t, Lisp_Object *, int, ptrdiff_t); - -#ifndef MSDOS -/* Block SIGCHLD. */ - -void -block_child_signal (sigset_t *oldset) -{ - sigset_t blocked; - sigemptyset (&blocked); - sigaddset (&blocked, SIGCHLD); - sigaddset (&blocked, SIGINT); - pthread_sigmask (SIG_BLOCK, &blocked, oldset); -} - -/* Unblock SIGCHLD. */ - -void -unblock_child_signal (sigset_t const *oldset) -{ - pthread_sigmask (SIG_SETMASK, oldset, 0); -} - -#endif /* !MSDOS */ - /* Return the current buffer's working directory, or the home directory if it's unreachable, as a string suitable for a system call. Signal an error if the result would not be an accessible directory. */ |