Commit 26495794 authored by Paul Eggert's avatar Paul Eggert

* process.c (flush_pending_output): Remove stub.

All uses removed.
parent 917c483a
2013-08-22 Paul Eggert <eggert@cs.ucla.edu>
* process.c (flush_pending_output): Remove stub.
All uses removed.
2013-08-21 Paul Eggert <eggert@cs.ucla.edu>
* callproc.c: Fix race that killed background processes (Bug#15144).
......
......@@ -4100,7 +4100,6 @@ extern void init_sys_modes (struct tty_display_info *);
extern void reset_sys_modes (struct tty_display_info *);
extern void init_all_sys_modes (void);
extern void reset_all_sys_modes (void);
extern void flush_pending_output (int) ATTRIBUTE_CONST;
extern void child_setup_tty (int);
extern void setup_pty (int);
extern int set_window_size (int, int, int);
......
......@@ -3846,15 +3846,12 @@ deactivate_process (Lisp_Object proc)
}
#endif
inchannel = p->infd;
/* Beware SIGCHLD hereabouts. */
if (inchannel >= 0)
flush_pending_output (inchannel);
for (i = 0; i < PROCESS_OPEN_FDS; i++)
close_process_fd (&p->open_fd[i]);
inchannel = p->infd;
if (inchannel >= 0)
{
p->infd = -1;
......@@ -5785,10 +5782,9 @@ process_send_signal (Lisp_Object process, int signo, Lisp_Object current_group,
return;
}
switch (signo)
{
#ifdef SIGCONT
case SIGCONT:
if (signo == SIGCONT)
{
p->raw_status_new = 0;
pset_status (p, Qrun);
p->tick = ++process_tick;
......@@ -5797,14 +5793,8 @@ process_send_signal (Lisp_Object process, int signo, Lisp_Object current_group,
status_notify (NULL);
redisplay_preserve_echo_area (13);
}
break;
#endif /* ! defined (SIGCONT) */
case SIGINT:
case SIGQUIT:
case SIGKILL:
flush_pending_output (p->infd);
break;
}
#endif
/* If we don't have process groups, send the signal to the immediate
subprocess. That isn't really right, but it's better than any
......
......@@ -337,16 +337,6 @@ child_status_changed (pid_t child, int *status, int options)
return get_child_status (child, status, WNOHANG | options, 0);
}
/*
* flush any pending output
* (may flush input as well; it does not matter the way we use it)
*/
void
flush_pending_output (int channel)
{
/* FIXME: maybe this function should be removed */
}
/* Set up the terminal at the other end of a pseudo-terminal that
we will be controlling an inferior through.
......
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