From 4226ed6216e68a40f5a24d127372a374e8f04c66 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 12 Jul 2024 09:47:58 -0400 Subject: executor: avoid setsid() errors See commit bc144f9a58782daa2399d417b56aad80e82a219e. The justification applies to other BSDs as well, so apply the same workaround. --- executor/common_bsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_bsd.h') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 683e7c140..7d387be16 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -396,7 +396,7 @@ static void sandbox_common() #if SYZ_EXECUTOR if (!flag_threaded) #endif - if (setsid() == -1) + if (setsid() == -1 && errno != EPERM) fail("setsid failed"); #endif -- cgit mrf-deployment