Merge branch 'fix-wm-close' of github.com:huffman/hifi into fix-wm-close

This commit is contained in:
Ryan Huffman 2014-08-22 15:10:23 -07:00
commit 4c485a26ed
2 changed files with 22 additions and 0 deletions

View file

@ -37,6 +37,17 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) :
QCoreApplication(argc, argv),
_assignmentServerHostname(DEFAULT_ASSIGNMENT_SERVER_HOSTNAME)
{
#ifdef Q_OS_WIN
// Windows applications buffer stdout/err hard when not run from a terminal,
// making assignment clients run from the Stack Manager application not flush
// log messages.
// This will disable the buffering. If this becomes a performance issue,
// an alternative is to call fflush(...) periodically.
setbuf(stdout, NULL);
setbuf(stderr, NULL);
#endif
setOrganizationName("High Fidelity");
setOrganizationDomain("highfidelity.io");
setApplicationName("assignment-client");

View file

@ -43,6 +43,17 @@ DomainServer::DomainServer(int argc, char* argv[]) :
_networkReplyUUIDMap(),
_sessionAuthenticationHash()
{
#ifdef Q_OS_WIN
// Windows applications buffer stdout/err hard when not run from a terminal,
// making a domain server run from the Stack Manager application not flush
// log messages.
// This will disable the buffering. If this becomes a performance issue,
// an alternative is to call fflush(...) periodically.
setbuf(stdout, NULL);
setbuf(stderr, NULL);
#endif
setOrganizationName("High Fidelity");
setOrganizationDomain("highfidelity.io");
setApplicationName("domain-server");