mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
[OOPS] That was not meant to be pushed/commited
This commit is contained in:
parent
d2c71d761e
commit
6295cc506e
5 changed files with 3 additions and 40 deletions
|
@ -38,8 +38,7 @@
|
||||||
#include "upcall.h"
|
#include "upcall.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
//#define MAX_NUM_THREADS 128
|
#define MAX_NUM_THREADS 128
|
||||||
#define MAX_NUM_THREADS 1
|
|
||||||
DWORD NFS41D_VERSION = 0;
|
DWORD NFS41D_VERSION = 0;
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
|
@ -124,7 +123,6 @@ static unsigned int WINAPI thread_main(void *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (upcall.opcode == NFS41_SHUTDOWN) {
|
if (upcall.opcode == NFS41_SHUTDOWN) {
|
||||||
DbgPrint("Shutdown\n");
|
|
||||||
printf("Shutting down..\n");
|
printf("Shutting down..\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@ -157,7 +155,6 @@ write_downcall:
|
||||||
#ifndef STANDALONE_NFSD
|
#ifndef STANDALONE_NFSD
|
||||||
VOID ServiceStop()
|
VOID ServiceStop()
|
||||||
{
|
{
|
||||||
DbgPrint("Setting stop event\n");
|
|
||||||
if (stop_event)
|
if (stop_event)
|
||||||
SetEvent(stop_event);
|
SetEvent(stop_event);
|
||||||
}
|
}
|
||||||
|
@ -336,17 +333,8 @@ static int getdomainname()
|
||||||
(socklen_t)ptr->ai_addrlen, hostname, NI_MAXHOST,
|
(socklen_t)ptr->ai_addrlen, hostname, NI_MAXHOST,
|
||||||
servInfo, NI_MAXSERV, NI_NAMEREQD);
|
servInfo, NI_MAXSERV, NI_NAMEREQD);
|
||||||
if (status)
|
if (status)
|
||||||
#if 0
|
|
||||||
dprintf(1, "getnameinfo failed %d\n", WSAGetLastError());
|
dprintf(1, "getnameinfo failed %d\n", WSAGetLastError());
|
||||||
else {
|
else {
|
||||||
#else
|
|
||||||
{
|
|
||||||
dprintf(1, "getnameinfo failed %d, forcing name\n", WSAGetLastError());
|
|
||||||
memcpy(hostname, "reactos.home", sizeof("reactos.home"));
|
|
||||||
status = 0;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
size_t i, len = strlen(hostname);
|
size_t i, len = strlen(hostname);
|
||||||
char *p = hostname;
|
char *p = hostname;
|
||||||
dprintf(1, "getdomainname: hostname %s %d\n", hostname, len);
|
dprintf(1, "getdomainname: hostname %s %d\n", hostname, len);
|
||||||
|
@ -498,8 +486,6 @@ VOID ServiceStart(DWORD argc, LPTSTR *argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef STANDALONE_NFSD
|
#ifndef STANDALONE_NFSD
|
||||||
DbgPrint("WaitEvent\n");
|
|
||||||
|
|
||||||
stop_event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
stop_event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
if (stop_event == NULL)
|
if (stop_event == NULL)
|
||||||
goto out_pipe;
|
goto out_pipe;
|
||||||
|
@ -518,7 +504,6 @@ VOID ServiceStart(DWORD argc, LPTSTR *argv)
|
||||||
// report the status to the service control manager.
|
// report the status to the service control manager.
|
||||||
if (!ReportStatusToSCMgr(SERVICE_RUNNING, NO_ERROR, 0))
|
if (!ReportStatusToSCMgr(SERVICE_RUNNING, NO_ERROR, 0))
|
||||||
goto out_pipe;
|
goto out_pipe;
|
||||||
DbgPrint("Starting wait\n");
|
|
||||||
WaitForSingleObject(stop_event, INFINITE);
|
WaitForSingleObject(stop_event, INFINITE);
|
||||||
#else
|
#else
|
||||||
//This can be changed to waiting on an array of handles and using waitformultipleobjects
|
//This can be changed to waiting on an array of handles and using waitformultipleobjects
|
||||||
|
|
|
@ -139,8 +139,6 @@ void WINAPI service_main(DWORD dwArgc, LPTSTR *lpszArgv)
|
||||||
if (!sshStatusHandle)
|
if (!sshStatusHandle)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
DbgPrint("Starting service\n");
|
|
||||||
|
|
||||||
// SERVICE_STATUS members that don't change in example
|
// SERVICE_STATUS members that don't change in example
|
||||||
//
|
//
|
||||||
ssStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
|
ssStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
|
||||||
|
@ -155,14 +153,8 @@ void WINAPI service_main(DWORD dwArgc, LPTSTR *lpszArgv)
|
||||||
3000)) // wait hint
|
3000)) // wait hint
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
DbgPrint("Starting service 2\n");
|
|
||||||
|
|
||||||
SetConsoleCtrlHandler( ControlHandler, TRUE );
|
|
||||||
|
|
||||||
ServiceStart( dwArgc, lpszArgv );
|
ServiceStart( dwArgc, lpszArgv );
|
||||||
|
|
||||||
DbgPrint("Done\n");
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
||||||
// try to report the stopped status to the service control manager.
|
// try to report the stopped status to the service control manager.
|
||||||
|
@ -197,8 +189,6 @@ VOID WINAPI service_ctrl(DWORD dwCtrlCode)
|
||||||
// Handle the requested control code.
|
// Handle the requested control code.
|
||||||
//
|
//
|
||||||
|
|
||||||
DbgPrint("service_ctrl called\n");
|
|
||||||
|
|
||||||
switch (dwCtrlCode)
|
switch (dwCtrlCode)
|
||||||
{
|
{
|
||||||
// Stop the service.
|
// Stop the service.
|
||||||
|
@ -208,14 +198,9 @@ VOID WINAPI service_ctrl(DWORD dwCtrlCode)
|
||||||
// ServiceStop(). This avoids a race condition
|
// ServiceStop(). This avoids a race condition
|
||||||
// which may result in a 1053 - The Service did not respond...
|
// which may result in a 1053 - The Service did not respond...
|
||||||
// error.
|
// error.
|
||||||
#ifdef __REACTOS__
|
|
||||||
case SERVICE_CONTROL_SHUTDOWN:
|
|
||||||
#endif
|
|
||||||
case SERVICE_CONTROL_STOP:
|
case SERVICE_CONTROL_STOP:
|
||||||
DbgPrint("for stop\n");
|
|
||||||
ReportStatusToSCMgr(SERVICE_STOP_PENDING, NO_ERROR, 0);
|
ReportStatusToSCMgr(SERVICE_STOP_PENDING, NO_ERROR, 0);
|
||||||
ServiceStop();
|
ServiceStop();
|
||||||
DbgPrint("Done\n");
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Update the service status.
|
// Update the service status.
|
||||||
|
@ -265,11 +250,7 @@ BOOL ReportStatusToSCMgr(DWORD dwCurrentState,
|
||||||
if (dwCurrentState == SERVICE_START_PENDING)
|
if (dwCurrentState == SERVICE_START_PENDING)
|
||||||
ssStatus.dwControlsAccepted = 0;
|
ssStatus.dwControlsAccepted = 0;
|
||||||
else
|
else
|
||||||
#ifndef __REACTOS__
|
|
||||||
ssStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP;
|
ssStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP;
|
||||||
#else
|
|
||||||
ssStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ssStatus.dwCurrentState = dwCurrentState;
|
ssStatus.dwCurrentState = dwCurrentState;
|
||||||
ssStatus.dwWin32ExitCode = dwWin32ExitCode;
|
ssStatus.dwWin32ExitCode = dwWin32ExitCode;
|
||||||
|
|
|
@ -1633,8 +1633,6 @@ HRESULT RPC_ResolveOxid(OXID oxid, OXID_INFO *oxid_info)
|
||||||
* IRemUnknown object */
|
* IRemUnknown object */
|
||||||
void RPC_StartRemoting(struct apartment *apt)
|
void RPC_StartRemoting(struct apartment *apt)
|
||||||
{
|
{
|
||||||
ERR("Starting remoting: %d %p %p\n", apt->remoting_started, GetCurrentProcessId(), GetCurrentThreadId());
|
|
||||||
|
|
||||||
if (!InterlockedExchange(&apt->remoting_started, TRUE))
|
if (!InterlockedExchange(&apt->remoting_started, TRUE))
|
||||||
{
|
{
|
||||||
WCHAR endpoint[200];
|
WCHAR endpoint[200];
|
||||||
|
|
|
@ -904,7 +904,7 @@ NtfsUserFsRequest(PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STACK_LOCATION Stack;
|
PIO_STACK_LOCATION Stack;
|
||||||
PDEVICE_EXTENSION DeviceExt;
|
PDEVICE_EXTENSION DeviceExt;
|
||||||
|
|
||||||
DPRINT("NtfsUserFsRequest(%p, %p)\n", DeviceObject, Irp);
|
DPRINT1("NtfsUserFsRequest(%p, %p)\n", DeviceObject, Irp);
|
||||||
|
|
||||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
|
@ -966,7 +966,7 @@ NtfsFileSystemControl(PNTFS_IRP_CONTEXT IrpContext)
|
||||||
PIRP Irp;
|
PIRP Irp;
|
||||||
PDEVICE_OBJECT DeviceObject;
|
PDEVICE_OBJECT DeviceObject;
|
||||||
|
|
||||||
DPRINT("NtfsFileSystemControl() called\n");
|
DPRINT1("NtfsFileSystemControl() called\n");
|
||||||
|
|
||||||
DeviceObject = IrpContext->DeviceObject;
|
DeviceObject = IrpContext->DeviceObject;
|
||||||
Irp = IrpContext->Irp;
|
Irp = IrpContext->Irp;
|
||||||
|
|
|
@ -3,7 +3,6 @@ add_subdirectory(createspec)
|
||||||
add_subdirectory(gdb2)
|
add_subdirectory(gdb2)
|
||||||
add_subdirectory(gdihv)
|
add_subdirectory(gdihv)
|
||||||
add_subdirectory(genguid)
|
add_subdirectory(genguid)
|
||||||
add_subdirectory(ioctlbf)
|
|
||||||
add_subdirectory(nls2txt)
|
add_subdirectory(nls2txt)
|
||||||
add_subdirectory(shimdbg)
|
add_subdirectory(shimdbg)
|
||||||
add_subdirectory(shlextdbg)
|
add_subdirectory(shlextdbg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue