mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Release pledge.com v1.6
This commit is contained in:
parent
ae5d06dc53
commit
4e939d1761
5 changed files with 46 additions and 145 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue