1SNOBOL4FORK(3)                  CSNOBOL4 Manual                 SNOBOL4FORK(3)
2
3
4

NAME

6       snobol4fork - POSIX fork for SNOBOL4
7

SYNOPSYS

9           -INCLUDE 'fork.sno'
10
11                   pid = FORK()
12
13                   status = WAITPID([pid][,options])
14
15                   pid = GETPID()
16
17                   parent = GETPPID()
18

DESCRIPTION

20       FORK() creates a process: returns 0 in child, process ID in parent.
21       WAITPID() takes an optional process id to wait for, and returns a
22       string with the process id, status, and additional status about the
23       child.  options is a string of optional flags (see the waitpid(2) man
24       page for details):
25
26       c   WCONTINUED
27
28       h   WNOHANG
29
30       t   WTRAPPED
31
32       u   WUNTRACED
33
34       w   NOWAIT
35
36       GETPID() returns the current process ID.  It never fails.
37
38       GETPPID() returns the parent process ID.  It never fails.
39

SEE ALSO

41       snobol4(1), fork(2), waitpid(2), getpid(2), getppid(2)
42

AUTHOR

44       Philip L. Budne
45
46
47
48CSNOBOL4B 2.3.1                 March 31, 2022                  SNOBOL4FORK(3)
Impressum