diff --git a/std/process.d b/std/process.d index 2efbcaa84c8..8e67cb78490 100644 --- a/std/process.d +++ b/std/process.d @@ -2856,7 +2856,7 @@ void kill(Pid pid, int codeOrSignal) do { s = tryWait(pid); } while (!s.terminated); version (Windows) assert(s.status == 123); else version (Posix) assert(s.status == -SIGKILL); - assertThrown!ProcessException(kill(pid)); + assert(pid.processID == Pid.terminated); } @system unittest // wait() and kill() detached process