summaryrefslogtreecommitdiff
path: root/src/syswait.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-05-19 00:11:48 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-05-19 00:13:27 -0700
commit7c951fd51832badb09055a8e177f8ec358cbbdcf (patch)
tree1b77d643aa5d2719ee7e070a82f499292d60adb3 /src/syswait.h
parentdf9bec3b39b12b33db8f5a97d86797f6636e5e7d (diff)
downloademacs-7c951fd51832badb09055a8e177f8ec358cbbdcf.tar.gz
Attempt to work around macOS vfork bug
Problem reported by YAMAMOTO Mitsuharu in: http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00342.html This is related to the fix for Bug#26397. * src/callproc.c (call_process_cleanup, call_process) [!MSDOS]: Report internal error if wait_for_termination fails. * src/sysdep.c (get_child_status): Return -1 if waitpid is buggy, instead of aborting. (wait_for_termination): Return bool success value. All callers changed.
Diffstat (limited to 'src/syswait.h')
-rw-r--r--src/syswait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syswait.h b/src/syswait.h
index 846a975b241..055562ae48b 100644
--- a/src/syswait.h
+++ b/src/syswait.h
@@ -56,7 +56,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
/* Defined in sysdep.c. */
-extern void wait_for_termination (pid_t, int *, bool);
+extern bool wait_for_termination (pid_t, int *, bool);
extern pid_t child_status_changed (pid_t, int *, int);
#endif /* EMACS_SYSWAIT_H */