Query: fork
OS: bsd
Section: 3f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FORK(3F) FORK(3F)NAMEfork - create a copy of this processSYNOPSISinteger function fork()DESCRIPTIONFork creates a copy of the calling process. The only distinction between the 2 processes is that the value returned to one of them (referred to as the `parent' process) will be the process id of the copy. The copy is usually referred to as the `child' process. The value returned to the `child' process will be zero. All logical units open for writing are flushed before the fork to avoid duplication of the contents of I/O buffers in the external file(s). If the returned value is negative, it indicates an error and will be the negation of the system error code. See perror(3F). A corresponding exec routine has not been provided because there is no satisfactory way to retain open logical units across the exec. How- ever, the usual function of fork/exec can be performed using system(3F).FILES/usr/lib/libU77.aSEE ALSOfork(2), wait(3F), kill(3F), system(3F), perror(3F) 4.2 Berkeley Distribution May 27, 1986 FORK(3F)
Related Man Pages |
---|
fork(2) - freebsd |
fork(2) - mojave |
fork(2) - suse |
fork(2) - opendarwin |
fork(2) - netbsd |
Similar Topics in the Unix Linux Community |
---|
process |
fork and rand() |
IPC-using fork() in a loop |
Fork and then exec problem with signals |
fork processes |