Hi,
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.
thanks and regards,
Prasad Somwanshi
diff --git a/runtime/pgAdmin4.cpp b/runtime/pgAdmin4.cpp
--- a/runtime/pgAdmin4.cpp
+++ b/runtime/pgAdmin4.cpp
@@ -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
-- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
