mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
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
This commit is contained in:
@@ -1376,7 +1376,10 @@ pid_t fork(void)
|
||||
|
||||
WAIT_SEM();
|
||||
retval = (*fork_redir)();
|
||||
POST_SEM();
|
||||
if (retval == 0)
|
||||
INIT_SEM();
|
||||
else
|
||||
POST_SEM();
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user