mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
tabrest.cpp
This commit is contained in:
@@ -129,6 +129,9 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
|
|||||||
rc = 1;
|
rc = 1;
|
||||||
} // endif CreateProcess
|
} // endif CreateProcess
|
||||||
#else // !__WIN__
|
#else // !__WIN__
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
char fn[600];
|
char fn[600];
|
||||||
pid_t pID;
|
pid_t pID;
|
||||||
|
|
||||||
@@ -166,7 +169,7 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
|
|||||||
rc = 1;
|
rc = 1;
|
||||||
} else {
|
} else {
|
||||||
// Parent process
|
// Parent process
|
||||||
wait(); // Wait for the child to terminate
|
wait(NULL); // Wait for the child to terminate
|
||||||
} // endif pID
|
} // endif pID
|
||||||
#endif // !__WIN__
|
#endif // !__WIN__
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user