Changeset 7610


Ignore:
Timestamp:
2004-06-17T15:04:26+12:00 (20 years ago)
Author:
mdewsnip
Message:

Added code to prevent the local library server being run multiple times at once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/fnord.cpp

    r6023 r7610  
    897897int __stdcall WinMain(HINSTANCE Instance, HINSTANCE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {
    898898  HWND MainWindow;  MSG Message;  WNDCLASS MainClass; 
     899
     900  // One instance of the local library server is quite enough, thank you very much
     901  HWND gw = FindWindow("Greenstone Digital Library Software",
     902               "Greenstone Digital Library Software");
     903  if (gw != NULL) {
     904    exit(1);
     905  }
    899906
    900907  // parse arguments
Note: See TracChangeset for help on using the changeset viewer.