dont send was_killed to forkserver more than once (#175)

Co-authored-by: galtashma <gal.tashma@swg.local>
This commit is contained in:
Gal Tashma 2021-06-15 22:58:05 +03:00 committed by GitHub
parent c2feddbe7c
commit 8202548648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,6 +353,9 @@ where
.executor
.forkserver_mut()
.write_ctl(last_run_timed_out)?;
self.executor.forkserver_mut().set_last_run_timed_out(0);
if send_len != 4 {
return Err(Error::Forkserver(
"Unable to request new process from fork server (OOM?)".to_string(),