Changeset 20638


Ignore:
Timestamp:
2009-09-18T20:20:30+12:00 (15 years ago)
Author:
ak19
Message:

Now returns negative values on input error (wrong number of arguments) in the C++ files that start and stop the apache webserver on Windows.

Location:
gsdl/trunk/runtime-src/src/w32apachectl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/w32apachectl/starthttpd.cpp

    r19345 r20638  
    5757 
    5858  if (f) {
    59     // The process was sucessfully spawned, wait for it to terminate
     59    // The process was successfully spawned, wait for it to terminate
    6060    CloseHandle(pi.hThread);
    6161    WaitForSingleObject(pi.hProcess, INFINITE);
     
    8181    MessageBox(NULL, "Usage: starthttpd.exe <event-name> <httpd.exe program path>",
    8282           TEXT("Error"), MB_OK);
    83     return(1);
     83    return(-1);
    8484  }
    8585 
  • gsdl/trunk/runtime-src/src/w32apachectl/starthttpdchild.cpp

    r19345 r20638  
    3030        __TEXT("Usage: %s (InheritableEventHandle) (CommandLineToSpawn)\n"),
    3131        argv[0]);
    32        return(0);
     32       return(-1);
    3333  }
    3434 
     
    7575 
    7676//////////////////////////////// End of File //////////////////////////////////
     77
     78
  • gsdl/trunk/runtime-src/src/w32apachectl/stophttpd.cpp

    r20184 r20638  
    6262    MessageBox(NULL, __TEXT("Usage: stophttpd.exe <event-name> [SILENT]"),
    6363           TEXT("Error"), MB_OK);
    64     return(1);
     64    return(-1);
    6565  }
    6666 
Note: See TracChangeset for help on using the changeset viewer.