Top "Fork" questions

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

Batch fork bomb?

I was looking at the fork bomb on Wikipedia, and the batch examples were: %0|%0 OR :here start ''your fork bomb …

batch-file fork pipeline
redis bgsave failed because fork Cannot allocate memory

all: here is my server memory info with 'free -m' total used free shared buffers cached Mem: 64433 49259 15174 0 3 31 -/+ buffers/cache: 49224 15209 …

linux-kernel redis fork
Portable way to pass file descriptor between different processes

On most UNIX systems passing an open file between processes can be easily done for child/parent processes by fork(); …

unix fork share file-descriptor
printf anomaly after "fork()"

OS: Linux, Language: pure C I'm moving forward in learning C programming in general, and C programming under UNIX in …

c linux unix printf fork
pcntl_fork() returning, Fatal error: Call to undefined function pcntl_fork()

I'm trying to fork a command line run XAMPP php process using pcntl_fork(). When I run the command below: $…

php fork command-line-interface pcntl undefined-function
Seeking a simple description regarding 'file descriptor' after fork()

In "Advanced Programming in the Unix Environment", 2nd edition, By W. Richard Stevens. Section 8.3 fork function. Here's the description: It …

c unix fork file-descriptor
waitpid - WIFEXITED returning 0 although child exited normally

I have been writing a program that spawns a child process, and calls waitpid to wait for the termination of …

c fork waitpid execv
How to pass arguments to processes created by fork()

I want to create copies of a process using fork() in C. I cant figure out how to pass arguments …

c linux operating-system fork system-calls
C socket get IP address from filedescriptor returned from accept

I know this question seems typical and multiple times answered but I think if you read the details it is …

c sockets unix fork file-descriptor
Who executes first after fork(): parent or the child?

I know that it can be either of these. But I always see that the child executes first on my …

c unix fork