def snaprun.start
import snap@1.4.0.0/src/effect.bend as Effectimport Base
13# a program started and left running, answering with its pid, or 0 when it
14# could not be started. The arguments arrive as `wire` makes them. The effect above
15# waits for what it runs and reads it to the end; this one waits for nothing,
16# and gives the child a session and a /dev/null of its own so it holds no pipe
17# open behind it.
18def snaprun.start(cmd: String) -> IO(String):
19 import "./start.c"
20 import "./start.js"