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
omega-mv / protocol / interplane / forge / tests / joinpg.om
| 1 | note joinpg: forge/tests helper. Leave the process group forge put this process in by joining |
| 2 | note the parent's (forge's) own group, then sleep 20 s. Exit 2 if the join fails, so a test that |
| 3 | note expects a timeout cannot pass without the join. |
| 4 | fn main to int |
| 5 | p = getppid |
| 6 | g = getpgid int p |
| 7 | r = setpgid 0 int g |
| 8 | if lt r 0 |
| 9 | exit 2 |
| 10 | end |
| 11 | x = sleepns 20000000000 |
| 12 | ret 0 |
| 13 | end |