diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2021-04-07 19:15:31 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2021-04-08 19:05:09 +0200 |
commit | 757aaa3bcc7698fff934bad167b7a751bb6c4ddb (patch) | |
tree | 1c23e17930a3afd6da9185f5211938667aa3c236 | |
parent | e4c23fe2d0a29fa738e5883d172a9b625ec59b62 (diff) | |
download | mariadb-git-757aaa3bcc7698fff934bad167b7a751bb6c4ddb.tar.gz |
tabrest.cpp
-rw-r--r-- | storage/connect/tabrest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/connect/tabrest.cpp b/storage/connect/tabrest.cpp index d4e7b766635..5733ee7ad56 100644 --- a/storage/connect/tabrest.cpp +++ b/storage/connect/tabrest.cpp @@ -129,6 +129,9 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename) rc = 1; } // endif CreateProcess #else // !__WIN__ +#include <sys/types.h> +#include <sys/wait.h> + char fn[600]; pid_t pID; @@ -166,7 +169,7 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename) rc = 1; } else { // Parent process - wait(); // Wait for the child to terminate + wait(NULL); // Wait for the child to terminate } // endif pID #endif // !__WIN__ |