Including sys/select.h where needed. Changed wait3() to waitpid() for better portability. Thanks Jonas Sortie Termansen.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
|
||||
|
||||
Copyright 2007-2024 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
Copyright 2007-2025 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
|
||||
Provided under GPL version 2 or later.
|
||||
|
||||
@@ -3079,7 +3079,7 @@ int Xorriso_execv(struct XorrisO *xorriso, char *cmd,
|
||||
|
||||
Xorriso_alloc_meM(prog, char, 5 * SfileadrL);
|
||||
|
||||
wait3(NULL,WNOHANG,NULL); /* just to remove any old dead child */
|
||||
waitpid(-1, NULL, WNOHANG); /* just to remove any old dead child */
|
||||
|
||||
if(flag & 2) {
|
||||
ret= Xorriso_make_argv_with_null(xorriso, in_argc, in_argv,
|
||||
|
Reference in New Issue
Block a user