All uses removed.
+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).
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);
}
#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;
return;
}
- switch (signo)
- {
#ifdef SIGCONT
- case SIGCONT:
+ if (signo == SIGCONT)
+ {
p->raw_status_new = 0;
pset_status (p, Qrun);
p->tick = ++process_tick;
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
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 */
-}
\f
/* Set up the terminal at the other end of a pseudo-terminal that
we will be controlling an inferior through.