Commit 068b4f3c authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Error code got hidden by successful core read

The ret is overwritten by core read sub-routine. Need
to reset it to -1 to keep failing in case of e.g. last
pid sysctl write.
Reported-by: 's avatarNeal Becker <ndbecker2@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 48d3b1fc
......@@ -947,6 +947,8 @@ static inline int fork_with_pid(struct pstree_item *item)
} else
ca.core = NULL;
ret = -1;
ca.item = item;
ca.clone_flags = item->rst->clone_flags;
......
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