summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-11-02 11:57:42 -0330
committerMatthew Newhook <matthew@zeroc.com>2009-11-02 11:57:42 -0330
commitc5a7df8710e4eac11344cfc84189c22dfd81dbfe (patch)
tree16ca6bb14cd895c63f10d0a1cd3cbb8db34ffaf1 /cpp/src/IceGrid/Client.cpp
parenthttp://bugzilla/bugzilla/show_bug.cgi?id=4341 - ^D at username prompt makes i... (diff)
downloadice-c5a7df8710e4eac11344cfc84189c22dfd81dbfe.tar.bz2
ice-c5a7df8710e4eac11344cfc84189c22dfd81dbfe.tar.xz
ice-c5a7df8710e4eac11344cfc84189c22dfd81dbfe.zip
Minor #ifdef fix for 4341.
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r--cpp/src/IceGrid/Client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 074d479d040..3776cbb08b8 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -453,10 +453,12 @@ Client::run(int argc, char* argv[])
if(password.empty())
{
password = getPassword("password: ");
+#ifndef _WIN32
if(!cin.good())
{
return EXIT_FAILURE;
}
+#endif
}
session = AdminSessionPrx::uncheckedCast(router->createSession(id, password));
@@ -596,10 +598,12 @@ Client::run(int argc, char* argv[])
if(password.empty())
{
password = getPassword("password: ");
+#ifndef _WIN32
if(!cin.good())
{
return EXIT_FAILURE;
}
+#endif
}
session = registry->createAdminSession(id, password);