1f68e88f0d
So far the global variable in_forkee only indicated if the process is the child process during fork(2) itself. However, we need an indicator accessible from plain C code in newlib, allowing to check for a process being a forked process all the time, after fork(2) succeeded. Redefine bool in_forkee to int __in_forkee to allow exposing it to newlib. Redefine how it indicates fork state (not forked, forking, forked). Signed-off-by: Corinna Vinschen <corinna@vinschen.de> |
||
---|---|---|
.. | ||
cygheap.cc | ||
heap.cc | ||
malloc.cc | ||
malloc_wrapper.cc | ||
mmap.cc | ||
mmap_alloc.cc | ||
shared.cc |