[compiler-rt] [libfuzzer] use timer_create() instead of setitimer() for linux (PR #110274)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 00:39:24 PST 2024


================
@@ -104,14 +104,19 @@ bool ExecuteCommand(const Command &Cmd, std::string *CmdOutput) {
 }
 
 void SetTimer(int Seconds) {
-  struct itimerval T {
+  timer_t timerid;
----------------
fmayer wrote:

nit: Upcase `TimerId`

https://github.com/llvm/llvm-project/pull/110274


More information about the llvm-commits mailing list