Skip to content

Commit

Permalink
std::process: check update
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 15, 2024
1 parent 047d99e commit 100d862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/process/cmd_unix.jule
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fn execve(file: str, argv: []str, env: []str): int {

impl Cmd {
fn __spawn(self)!: int {
outln("test")
if self.path == "" {
error(ProcessError.NotExist)
}
Expand All @@ -66,7 +67,7 @@ impl Cmd {
error(get_last_process_error())
}
if cpp.WIFSIGNALED(status) {
error(ProcessError.Denied)
error(ProcessError.Fork)
}
ret cpp.WEXITSTATUS(status)
}
Expand Down

0 comments on commit 100d862

Please sign in to comment.