add subprocess.fork/kill

This commit is contained in:
ValKmjolnir
2024-06-12 01:25:40 +08:00
parent cde081ae9a
commit 8fff4ffb86
6 changed files with 136 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ var dlopen = func(libname) {
if (io.exists(libname))
return __dlopen(libname);
# find dynamic lib through PATH
var envpath = split(os.platform()=="windows"? ";":":",unix.getenv("PATH"));
var envpath = split(os.platform()=="windows"? ";":":", unix.getenv("PATH"));
# first find ./module
append(envpath, ".");
var path = os.platform()=="windows"? "\\module\\":"/module/";