implemented wxSingleInstanceChecker for Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-06-08 23:42:59 +00:00
parent fae9f59039
commit 4f3c5f06ff
6 changed files with 1017 additions and 631 deletions

View File

@@ -4562,7 +4562,7 @@ int main(int argc, char **argv)
}
#ifdef TEST_SNGLINST
wxSingleInstanceChecker checker(_T("wxConsoleSample"));
wxSingleInstanceChecker checker(_T(".wxconsole.lock"));
if ( checker.IsAnotherRunning() )
{
wxPrintf(_T("Another instance of the program is running, exiting.\n"));