mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-12-07 16:13:10 +00: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,6 +1376,9 @@ pid_t fork(void)
|
||||
|
||||
WAIT_SEM();
|
||||
retval = (*fork_redir)();
|
||||
if (retval == 0)
|
||||
INIT_SEM();
|
||||
else
|
||||
POST_SEM();
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ GEN-ALWAYS =
|
||||
./a.exe
|
||||
|
||||
114_bound_signal.test: FLAGS += -b
|
||||
114_bound_signal.test: NORUN = true # tcc -run does not support fork and -b and SELINUX
|
||||
115_bound_setjmp.test: FLAGS += -b
|
||||
116_bound_setjmp2.test: FLAGS += -b
|
||||
117_builtins.test: T1 = ( $(TCC) -run $1 && $(TCC) -b -run $1 )
|
||||
|
||||
Reference in New Issue
Block a user