aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-07-12 09:47:58 -0400
committerDmitry Vyukov <dvyukov@google.com>2024-07-17 17:03:55 +0000
commit4226ed6216e68a40f5a24d127372a374e8f04c66 (patch)
tree4af02c6e738b485acc11e818769feaa8f5e7f06f /executor/common_bsd.h
parent5dec23db380d17f6bc2b062de2aa6b5700921c63 (diff)
executor: avoid setsid() errors
See commit bc144f9a58782daa2399d417b56aad80e82a219e. The justification applies to other BSDs as well, so apply the same workaround.
Diffstat (limited to 'executor/common_bsd.h')
-rw-r--r--executor/common_bsd.h2
1 files changed, 1 insertions, 1 deletions
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