Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SNOBOL4FORK(3)			CSNOBOL4 Manual			SNOBOL4FORK(3)

NAME
       snobol4fork - POSIX fork	for SNOBOL4

SYNOPSYS
	   -INCLUDE 'fork.sno'

		   pid = FORK()

		   status = WAITPID([pid][,options])

		   pid = GETPID()

		   parent = GETPPID()

DESCRIPTION
       FORK()  creates	a  process:  returns 0 in child, process ID in parent.
       WAITPID() takes an optional process id  to  wait	 for,  and  returns  a
       string  with  the  process  id, status, and additional status about the
       child.  options is a string of optional flags (see the  waitpid(2)  man
       page for	details):

       c   WCONTINUED

       h   WNOHANG

       t   WTRAPPED

       u   WUNTRACED

       w   NOWAIT

       GETPID()	returns	the current process ID.	 It never fails.

       GETPPID() returns the parent process ID.	 It never fails.

SEE ALSO
       snobol4(1), fork(2), waitpid(2),	getpid(2), getppid(2)

AUTHOR
       Philip L. Budne

CSNOBOL4B 2.3.1			March 31, 2022			SNOBOL4FORK(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=snobol4fork&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help