Cory,
This would not work as fork creates a copy of the existing
process and also the data area.
You may like to use some kind interprocess communication
functionality like semaphores,shared memory.
Also,fcntl system call F_SETLK options which would lock a
file, please check the man page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.