SNOBOL4FORK(3)
π SNOBOL4FORK(3) π
okay so bestie, this is a page from the CSNOBOL4 Manual and it's literally all about forking processes with SNOBOL4. like, POSIX fork energy but make it SNOBOL. sit down, hydrate, we're doing this π«Ά
πΈ NAME πΈ
snobol4fork β POSIX fork for SNOBOL4
no cap, that's the whole name section. short king.
β¨ SYNOPSYS β¨
-INCLUDE 'fork.sno'
pid = FORK()
status = WAITPID([pid][,options])
pid = GETPID()
parent = GETPPID()
look at that. immaculate. π€
π¦ DESCRIPTION π¦
okay so here's the tea β
FORK() creates a process β and it's giving split personality in the best way, because it returns 0 in the child and the process ID in the parent. yes, one function, two whole realities. main character energy fr fr.
WAITPID() takes an optional process id to wait for, and returns a string with the process id, the status, and additional status about the child. so you get the whole lore back, not just a vibe check. π
options is a string of optional flags β and for the full deets you gotta peek at the waitpid(2) man page. the flags are:
cβWCONTINUEDhβWNOHANGtβWTRAPPEDuβWUNTRACEDwβNOWAIT
five little letters, five big responsibilities. π
GETPID() returns the current process ID. it never fails. iconic behaviour, honestly, we love a function with zero drama. π
GETPPID() returns the parent process ID. it also never fails. mother is mothering. πΈ
π SEE ALSO π
snobol4(1), fork(2), waitpid(2), getpid(2), getppid(2)
the whole friend group, all linked up π
π AUTHOR π
Philip L. Budne
that's the whole page, bestie, you ate it. this was CSNOBOL4B 2.3.1, dated March 31, 2022 β so yes it's vintage but it's still slaying, periodt. πβ¨π¦
π¦ where this page comes from
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms