libcamera: process: Use _exit in child process
Use _exit() in child process in case of execv() error. That is to avoid interfering with the parent process as exit() may call its atexit() handlers and flush its io buffers. Signed-off-by: Julien Vuillaumier <julien.vuillaumier@nxp.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
f58077f073
commit
32905fdd0b
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ int Process::start(const std::string &path,
|
|||
|
||||
execv(path.c_str(), (char **)argv);
|
||||
|
||||
exit(EXIT_FAILURE);
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue