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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user