aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_bsd.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index a98d3e4cb..7ccd1053f 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -389,8 +389,13 @@ static long syz_extract_tcp_res(volatile long a0, volatile long a1, volatile lon
static void sandbox_common()
{
- if (setsid() == -1)
- fail("setsid failed");
+#if !SYZ_THREADED
+#if SYZ_EXECUTOR
+ if (!flag_threaded)
+#endif
+ if (setsid() == -1)
+ fail("setsid failed");
+#endif
// Some minimal sandboxing.
struct rlimit rlim;