mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
fix wait after vfork return error
vfork use waitpid hang father process, but waitpid release child processs information by default. So when user call wait, it return errno 10. Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
eba2f163ed
commit
fd776e8cee
@@ -628,7 +628,7 @@ static int goldfish_camera_data_uninit(FAR struct imgdata_s *data)
|
||||
|
||||
priv->streaming = false;
|
||||
nxsem_post(&priv->run);
|
||||
nxsched_waitpid(priv->pid, NULL, 0, 0);
|
||||
nxsched_waitpid(priv->pid, NULL, 0);
|
||||
|
||||
nxsem_destroy(&priv->run);
|
||||
file_close(&priv->file);
|
||||
|
||||
Reference in New Issue
Block a user