From: pabs Date: Sun, 11 Mar 2007 10:25:17 +0000 (+0000) Subject: Make synfigstudio less verbose when connecting to previous instances X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7f04ccf7bccfee78b4ddb3e82b53c98d94562521;p=synfig.git Make synfigstudio less verbose when connecting to previous instances git-svn-id: http://svn.voria.com/code@296 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/ipc.cpp b/synfig-studio/trunk/src/gtkmm/ipc.cpp index 89813e9..d9e3f98 100644 --- a/synfig-studio/trunk/src/gtkmm/ipc.cpp +++ b/synfig-studio/trunk/src/gtkmm/ipc.cpp @@ -307,7 +307,11 @@ IPC::make_connection() ); if(pipe_handle==INVALID_HANDLE_VALUE) { - synfig::warning("IPC::make_connection(): Unable to connect to previous instance. GetLastError=%d",GetLastError()); + DWORD error = GetLastError(); +#ifndef _DEBUG + if( error != ERROR_FILE_NOT_FOUND ) +#endif + synfig::warning("IPC::make_connection(): Unable to connect to previous instance. GetLastError=%d",error); } int fd=_open_osfhandle(reinterpret_cast(pipe_handle),_O_APPEND|O_WRONLY); #else @@ -324,7 +328,9 @@ IPC::make_connection() if(fd>=0) ret=SmartFILE(fdopen(fd,"w")); +#ifdef _DEBUG synfig::info("uplink fd=%d",fd); +#endif return ret; }