Skip to content

Commit 764327c

Browse files
committed
libsubprocess: fail with ESRCH not ENOENT
Problem: when the subprocess server cannot find a process by pid, it fails with ENOENT (No such file or directory). Change to ESRCH (No such process).
1 parent 92a0310 commit 764327c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/libsubprocess/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static flux_subprocess_t *proc_find_bypid (subprocess_server_t *s, pid_t pid)
102102
return p;
103103
p = zlistx_next (s->subprocesses);
104104
}
105-
errno = ENOENT;
105+
errno = ESRCH;
106106
return NULL;
107107
}
108108

0 commit comments

Comments
 (0)