Commit e7a6747f authored by Andreas Schwab's avatar Andreas Schwab

* src/sysdep.c (wait_for_termination_1): Make static.

(wait_for_termination, interruptible_wait_for_termination): Move
after wait_for_termination_1.
parent 1ef14cb4
2011-05-01 Andreas Schwab <schwab@linux-m68k.org>
* sysdep.c (wait_for_termination_1): Make static.
(wait_for_termination, interruptible_wait_for_termination): Move
after wait_for_termination_1.
2011-05-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* sysdep.c (interruptible_wait_for_termination): New function
......
......@@ -296,23 +296,8 @@ init_baud_rate (int fd)
int wait_debugging EXTERNALLY_VISIBLE;
#ifndef MSDOS
/* Wait for subprocess with process id `pid' to terminate and
make sure it will get eliminated (not remain forever as a zombie) */
void
wait_for_termination (int pid)
{
wait_for_termination_1 (pid, 0);
}
/* Like the above, but allow keyboard interruption. */
void
interruptible_wait_for_termination (int pid)
{
wait_for_termination_1 (pid, 1);
}
void
static void
wait_for_termination_1 (int pid, int interruptible)
{
while (1)
......@@ -357,6 +342,22 @@ wait_for_termination_1 (int pid, int interruptible)
}
}
/* Wait for subprocess with process id `pid' to terminate and
make sure it will get eliminated (not remain forever as a zombie) */
void
wait_for_termination (int pid)
{
wait_for_termination_1 (pid, 0);
}
/* Like the above, but allow keyboard interruption. */
void
interruptible_wait_for_termination (int pid)
{
wait_for_termination_1 (pid, 1);
}
/*
* flush any pending output
* (may flush input as well; it does not matter the way we use it)
......
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