[PATCH] D138952: Support: Add polling option to sys::Wait [WIP]

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 16:04:16 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Support/Unix/Program.inc:447
+          // Child's not done yet, resume it.
+          kill(PI.Pid, SIGCONT);
+        }
----------------
aganea wrote:
> Out of curiosity (sorry I am not well versed into Linux APIs) -- who does stop the child process & when?
Above a signal handler was installed. The process receives SIGALRM after the timeout from the OS. The original path here then killed off the child; this instead sends the signal to continue


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138952/new/

https://reviews.llvm.org/D138952



More information about the llvm-commits mailing list