<div dir="ltr">I was trying to replace system() API in my multi-threaded app as it is suggested not to any calls in multi-threaded app which uses fork().....<div style>When I was going through the man pages of fork()..in the Notes section I found </div>
<div style> <b> "Since version 2.3.3, rather than invoking the kernel's fork() system call, the glibc fork() wrapper that is provided as part of the NPTL threading implemenâ</b></div><div><b> tation invokes clone(2) with flags that provide the same effect as the traditional system call. The glibc wrapper invokes any fork handlers that have been</b></div>
<div><b> established using pthread_atfork(3)."</b></div><div style><br></div><div style>Is this mean, I still can use fork() or any other API which uses fork() for its implementation and make sure my app is thread safe or free from dead locks????</div>
<div style><br></div><div style>Thanks,</div><div style>Praveen R</div></div>