sleep api used in pgAdmin4.cpp doesn't seem cross-platform(used from POSIX

specific C header). Either need to be replaced by C++11 equivalent or Qt
one. QThread::sleep seem appropriate to me.
pull/3/head
Prasad Somwanshi 2015-10-29 11:24:07 +01:00 committed by Dave Page
parent c1db54b2c2
commit 6c62d9eecd
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ int main(int argc, char * argv[])
// This is a hack. Wait a second and then check to see if the server thread
// is still running. If it's not, we probably had a startup error
sleep(1);
QThread::sleep(1);
// Any errors?
if (server->isFinished() || server->getError().length() > 0)
@ -108,7 +108,7 @@ int main(int argc, char * argv[])
exit(1);
}
sleep(1);
QThread::sleep(1);
}
// Create & show the main window