* defs.h (wait_to_die_with_timeout): Declare.

* utils.c: #include "gdb_wait.h".
	(sigalrm_handler, wait_to_die_with_timeout): New functions.
	* ser-pipe.c: Don't #include "gdb_wait.h".
	(pipe_close): Give child a chance to die on its own after closing
	its stdin before SIGTERM'ing it.
This commit is contained in:
Doug Evans
2011-12-14 20:53:57 +00:00
parent afaabefa90
commit 0b6cb71e50
4 changed files with 106 additions and 5 deletions

View File

@@ -440,6 +440,10 @@ extern struct cleanup *make_bpstat_clear_actions_cleanup (void);
extern int producer_is_gcc_ge_4 (const char *producer);
#ifdef HAVE_WAITPID
extern pid_t wait_to_die_with_timeout (pid_t pid, int *status, int timeout);
#endif
/* Annotation stuff. */