Top "Fork" questions

The `fork()` function is the Unix/Linux/POSIX way of creating a new process by duplicating the calling process.

how to set close-on-exec by default

I'm implementing a library to run commands. The library is C, on Linux. It currently does a popen() call to …

c linux exec fork
How do I debug the child process after fork() in gdb?

After calling fork,the current process will call exit(0). But the child will continue. switch(fork()) { case -1: exit(1); case 0: //…

c gdb fork
How to view diff of a forked github project

I have forked a project on github and need to have a set of changes I made since I forked, …

git diff github fork master
Faster forking of large processes on Linux?

What's the fastest, best way on modern Linux of achieving the same effect as a fork-execve combo from a large …

linux process debian exec fork
PHP mysqli reconnect problem

I am having trouble using the mysqli class in PHP and I haven't been able to find the answer anywhere. …

php mysqli fork reconnect
C: Exec/fork > Defunct processes

I'm want to create a lot of child processes using the fork > exec procedure. Many processes are ending very …

c exec fork defunct
Is it possible to 'fork a fork' in Github?

I am currently working on a project that is a spinoff (fork) from a framework I have been working on. …

git version-control github fork
How is socket connection being handled in a forked process

I have a program that serves as a TCP server that listens to port 5000, for example. Now I want to …

sockets process tcp fork port
Maintaining Logging and/or stdout/stderr in Python Daemon

Every recipe that I've found for creating a daemon process in Python involves forking twice (for Unix) and then closing …

python logging fork daemon
How to get variables shared between child and parent process while using fork in perl

I am using fork in my code. Before fork call in my code, the parent process has a global variable …

perl global-variables ipc fork shared