GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNOBOL4FORK(3) CSNOBOL4 Manual SNOBOL4FORK(3)

snobol4fork - POSIX fork for SNOBOL4


-INCLUDE 'fork.sno'
        pid = FORK()
        status = WAITPID([pid][,options])
        pid = GETPID()
        parent = GETPPID()

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.

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

Philip L. Budne
March 31, 2022 CSNOBOL4B 2.3.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.