Posted Aug 3, 2008 5:43 UTC (Sun) by smurf (subscriber, #17840)
[Link]
Libraries don't directly call the system; they use the glibc entry points.
However, any possible locking scheme would require that execve() and open()/whatever cannot
run concurrently. It's not hard to construct a program that would be hurt rather severely by
that restriction.
Extending system calls
Posted Oct 10, 2008 19:41 UTC (Fri) by bluefoxicy (guest, #25366)
[Link]
Why not uh. fork(), then in the child (which calls exec()) call close() to drop the file handle, THEN call exec()? You know, like normal people?