X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fipc.cpp;h=d9e3f98cd7cb13dd0bff31eb35c89aadde4f2050;hb=24ff35aed1b5a84e10599c686402cd41561e7510;hp=89813e9d6051ab826080003af017d0a408f642ea;hpb=22141e99d589c693677d2cba122a198f45c0fa74;p=synfig.git 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; }