[fpc-pascal]fork with forked program

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Sep 16 13:28:49 CEST 2003

On Tue, 16 Sep 2003, [iso-8859-2] Balázs Csaba wrote:

> I want to use fork to make multithread application for sockets and I would
> like to fork it to run in dameon mode.

Multithread is not possible with Fork()

> Can I fork the forked program? With call fork I get 0 in result in child.

This is correct. Fork returns 0 in the child and returns the child process
ID in the parent.


More information about the fpc-pascal mailing list