Hacker News new | past | comments | ask | show | jobs | submit login

> When you start a program in a debugger like gdb, it does a variation of the usual fork()–exec() trick

It would be helpful if there was a link explaining the 'usual' fork()–exec() trick.




It's pretty simple, really. The process first calls fork() to create a child process. The child process then calls exec() to replace itself with another executable. This is the typical way you'd launch a process on any UNIX-like system. For example, it's how the shell will create a process when you issue a command.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: