* Pid::kill() should be interruptable.

This commit is contained in:
Eelco Dolstra 2006-12-03 02:12:26 +00:00
parent 7951c3c546
commit 363f40022f
1 changed files with 3 additions and 1 deletions

View File

@ -685,9 +685,11 @@ void Pid::kill()
/* Wait until the child dies, disregarding the exit status. */
int status;
while (waitpid(pid, &status, 0) == -1)
while (waitpid(pid, &status, 0) == -1) {
checkInterrupt();
if (errno != EINTR) printMsg(lvlError,
(SysError(format("waiting for process %1%") % pid).msg()));
}
pid = -1;
}