mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
13 lines
279 B
Plaintext
13 lines
279 B
Plaintext
use std.subprocess;
|
|
use std.unix;
|
|
|
|
var process = subprocess.create([
|
|
"./nasal",
|
|
"test/for_subprocess_test/infinite_loop.nas"
|
|
]);
|
|
|
|
unix.sleep(1);
|
|
|
|
println("kill subprocess...");
|
|
var res = subprocess.terminate(process);
|
|
println("subprocess killed, code ", res); |