stdlib: fix ChildProcess.killPosix

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda 2021-09-06 22:16:02 +09:00 committed by Veikka Tuominen
parent eb5e4ac495
commit 34671b1d19

View File

@ -161,7 +161,7 @@ pub const ChildProcess = struct {
self.cleanupStreams();
return term;
}
try os.kill(self.pid, os.SIGTERM);
try os.kill(self.pid, os.SIG.TERM);
self.waitUnwrapped();
return self.term.?;
}