interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / protocol / interplane / forge / tests / joinpg.om

13 lines · 364 bytes Raw Blame History
1note joinpg: forge/tests helper. Leave the process group forge put this process in by joining
2note the parent's (forge's) own group, then sleep 20 s. Exit 2 if the join fails, so a test that
3note expects a timeout cannot pass without the join.
4fn main to int
5p = getppid
6g = getpgid int p
7r = setpgid 0 int g
8if lt r 0
9exit 2
10end
11x = sleepns 20000000000
12ret 0
13end