diff options
| author | Greg Steuck <greg@nest.cx> | 2024-07-09 10:18:15 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-09 14:08:56 +0000 |
| commit | bc144f9a58782daa2399d417b56aad80e82a219e (patch) | |
| tree | 01464029c372ec326834840ce8790a8cd2c59ecd /executor | |
| parent | 79d68adabef23664d6fbd2cc314a7fef90391ccd (diff) | |
executor: only report unknown setsid errors
Unlike linux the BSDs used to check the result of setsid.
This suddenly became a problem a couple of weeks ago. It's hard
to figure out why because there was a number of problems in the
area preventing the test from working:
gmake executor execprog && \
./bin/openbsd_amd64/syz-execprog -stress -executor ./bin/openbsd_amd64/syz-executor
At least with this change the test above successfully executes some
coverage and exits cleanly.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_openbsd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_openbsd.h b/executor/common_openbsd.h index 031aaf88a..8fcd092e9 100644 --- a/executor/common_openbsd.h +++ b/executor/common_openbsd.h @@ -299,7 +299,7 @@ static void sandbox_common() #if SYZ_EXECUTOR if (!flag_threaded) #endif - if (setsid() == -1) + if (setsid() == -1 && errno != EPERM) fail("setsid failed"); #endif |
