History

Fix boundschecking fork for macos/SELINUX

lib/bcheck.c: - Use INIT_SEM for child process fork on macos tests/tests2/Makefile: - tcc -run does not work for fork due to SHARED mmap

herman ten brugge committed 6 years ago

Commit d55e5861 parent 61c0c852 files · +5 −1Browse files

Showing the changes to lib (1 of 2 files). Show all

Unified · Split

lib/bcheck.c+4−1
@@ -1376,7 +1376,10 @@ pid_t fork(void) · 1375 unmodified lines
1376 1376
1377 WAIT_SEM();1377 WAIT_SEM();
1378 retval = (*fork_redir)();1378 retval = (*fork_redir)();
1379 POST_SEM();1379 if (retval == 0)
1380 INIT_SEM();
1381 else
1382 POST_SEM();
1380 return retval;1383 return retval;
1381}1384}
1382#endif1385#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t