Commit 86f39c3f authored by Geoff Simmons's avatar Geoff Simmons

Ensure errno==0 before calling fork().

parent 75b763b4
...@@ -222,6 +222,7 @@ vdp_init(struct req *req, void **priv) ...@@ -222,6 +222,7 @@ vdp_init(struct req *req, void **priv)
if (mk_pipe(err, obj->name, req->vsl) != 0) if (mk_pipe(err, obj->name, req->vsl) != 0)
return (-1); return (-1);
errno = 0;
state->chldpid = fork(); state->chldpid = fork();
if (state->chldpid < 0) { if (state->chldpid < 0) {
VSLb(req->vsl, SLT_Error, "vdfp_pipe: vdp %s: fork failed for " VSLb(req->vsl, SLT_Error, "vdfp_pipe: vdp %s: fork failed for "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment