Skip to content

Commit

Permalink
executor: avoid setsid() errors
Browse files Browse the repository at this point in the history
See commit bc144f9.  The justification
applies to other BSDs as well, so apply the same workaround.
  • Loading branch information
markjdb authored and dvyukov committed Jul 17, 2024
1 parent 5dec23d commit 4226ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/common_bsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4226ed6

Please sign in to comment.