The ups and downs of strlcpy()
Posted Jul 29, 2012 13:26 UTC (Sun) by
nix (subscriber, #2304)
In reply to:
The ups and downs of strlcpy() by foom
Parent article:
The ups and downs of strlcpy()
It would be pretty cool if you could spawn an empty process in a stopped state, and then poke at it from the parent for a bit (open up new file descriptors/etc) before causing it to exec a real subprocess.
You can do that with PTRACE_O_TRACEFORK or PTRACE_O_TRACEEXEC, but as with anything involving ptrace() there are so many tentacles that virtually any alternative is preferable.
(
Log in to post comments)