Currently the process is terminated after the timeout. Add an option
to let the process resume after the timeout instead.
WIP because of windows support. No idea if the Windows part even
builds, much less works.
Paths
| Differential D138952
Support: Add polling option to sys::Wait ClosedPublic Authored by arsenm on Nov 29 2022, 2:30 PM.
Details Summary Currently the process is terminated after the timeout. Add an option WIP because of windows support. No idea if the Windows part even
Diff Detail Event Timelinearsenm added a parent revision: D138942: Support: Make Wait's SecondsToWait be Optional [NFC].Nov 29 2022, 2:30 PM arsenm added a child revision: D138953: llvm-reduce: Try to kill parallel workitems once we have a result..
Comment Actions Don't send SIGCONT, rename test
arsenm retitled this revision from Support: Add polling option to sys::Wait [WIP] to Support: Add polling option to sys::Wait. Comment ActionsAddress comment. Build bot also implies it at least builds on windows with a passed unit test This revision is now accepted and ready to land.Dec 22 2022, 5:29 AM
Revision Contents
Diff 479438 llvm/include/llvm/Support/Program.h
llvm/lib/Support/Unix/Program.inc
llvm/lib/Support/Windows/Program.inc
llvm/unittests/Support/ProgramTest.cpp
|
I wouldn't return right away, ProcStat is not yet updated at this point. I think enclosing all this into if (!Polling) like before would be fine. Seems good otherwise.