Release pledge.com v1.6

This commit is contained in:
Justine Tunney 2022-08-10 08:11:05 -07:00
parent ae5d06dc53
commit 4e939d1761
5 changed files with 46 additions and 145 deletions

View file

@ -604,7 +604,8 @@ TEST(pledge, threadWithLocks_canCodeMorph) {
int ws, pid;
// not sure how this works on OpenBSD but it works!
if (!fork()) {
ASSERT_SYS(0, 0, pledge("stdio prot_exec", 0));
__enable_threads();
ASSERT_SYS(0, 0, pledge("stdio", 0));
ASSERT_SYS(0, 0, _spawn(LockWorker, 0, &worker));
ASSERT_SYS(0, 0, _join(&worker));
_Exit(0);