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
Showing the changes to lib (1 of 2 files). Show all
Unified · Split
| @@ -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 | #endif | 1385 | #endif |