diff -Npaur aMule-2.0.0rc8/configure.in aMule-2.0.0rc8-hack/configure.in --- aMule-2.0.0rc8/configure.in Mon Dec 20 23:08:21 2004 +++ aMule-2.0.0rc8-hack/configure.in Sat Mar 12 22:22:13 2005 @@ -389,7 +389,7 @@ AC_TYPE_SIGNAL AC_FUNC_STAT AC_FUNC_STRFTIME AC_FUNC_STRTOD -AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo getpass gettimeofday inet_ntoa memchr memmove mempcpy memset munmap nl_langinfo select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strstr strtoul]) +AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo getpass gettimeofday inet_ntoa isatty memchr memmove mempcpy memset munmap nl_langinfo select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strstr strtoul]) #------------------------------------------------------------------------------- # End of autoscan stuff #------------------------------------------------------------------------------- diff -Npaur aMule-2.0.0rc8/src/ExternalConnector.cpp aMule-2.0.0rc8-hack/src/ExternalConnector.cpp --- aMule-2.0.0rc8/src/ExternalConnector.cpp Sun Dec 12 12:59:00 2004 +++ aMule-2.0.0rc8-hack/src/ExternalConnector.cpp Sat Mar 12 22:26:32 2005 @@ -264,11 +264,17 @@ void CaMuleExternalConnector::TextShell( wxString buf; bool The_End = false; - do { - GetCommand(prompt, buffer, 256); - buf = char2unicode(buffer); - The_End = Parse_Command(buf, commands); - } while ((!The_End) && (m_isConnected)); +#ifdef HAVE_ISATTY + if ( ! isatty(0) ) { + while(m_isConnected); + return; + } +#endif + do { + GetCommand(prompt, buffer, 256); + buf = char2unicode(buffer); + The_End = Parse_Command(buf, commands); + } while ((!The_End) && (m_isConnected)); } CECPacket *CaMuleExternalConnector::SendRecvMsg_v2(CECPacket *request)