fixed handling of calling init() when a previous process did not

call cleanup().  if that process still appears to exist then the
init() fails.  otherwise some cleanup is performed and the init()
proceeds.  a synergy server started while another is running will
now exit immediately without interfering the original server.
This commit is contained in:
crs
2002-07-18 17:03:10 +00:00
parent 635c3d1c62
commit cf71aec730
2 changed files with 42 additions and 15 deletions

View File

@@ -398,7 +398,9 @@ CMSWindowsPrimaryScreen::onPreOpen()
// initialize hook library
m_threadID = GetCurrentThreadId();
m_init(m_threadID);
if (m_init(m_threadID) == 0) {
throw XScreenOpenFailure();
}
}
void