View | Details | Raw Unified | Return to bug 41195
Collapse All | Expand All

(-)2.2.x/server/mpm/winnt/mpm_winnt.c (-1 / +1 lines)
Lines 57-63 static char const* signal_arg = NULL; Link Here
57
57
58
OSVERSIONINFO osver; /* VER_PLATFORM_WIN32_NT */
58
OSVERSIONINFO osver; /* VER_PLATFORM_WIN32_NT */
59
59
60
static DWORD parent_pid;
60
DWORD parent_pid;
61
DWORD my_pid;
61
DWORD my_pid;
62
62
63
int ap_threads_per_child = 0;
63
int ap_threads_per_child = 0;
(-)2.2.x/server/mpm/winnt/service.c (-1 / +5 lines)
Lines 35-40 Link Here
35
#undef _WINUSER_
35
#undef _WINUSER_
36
#include <winuser.h>
36
#include <winuser.h>
37
37
38
extern DWORD parent_pid;
39
38
static char *mpm_service_name = NULL;
40
static char *mpm_service_name = NULL;
39
static char *mpm_display_name = NULL;
41
static char *mpm_display_name = NULL;
40
42
Lines 1289-1296 void mpm_signal_service(apr_pool_t *ptem Link Here
1289
         * provided the class is ApacheWin95ServiceMonitor
1291
         * provided the class is ApacheWin95ServiceMonitor
1290
         */
1292
         */
1291
        hwnd = FindWindow("ApacheWin95ServiceMonitor", mpm_service_name);
1293
        hwnd = FindWindow("ApacheWin95ServiceMonitor", mpm_service_name);
1292
        if (hwnd && GetWindowThreadProcessId(hwnd, &service_pid))
1294
        if (hwnd && GetWindowThreadProcessId(hwnd, &service_pid)) {
1295
            parent_pid = service_pid;
1293
            globdat.ssStatus.dwCurrentState = SERVICE_RUNNING;
1296
            globdat.ssStatus.dwCurrentState = SERVICE_RUNNING;
1297
        }
1294
        else
1298
        else
1295
        {
1299
        {
1296
            globdat.ssStatus.dwCurrentState = SERVICE_STOPPED;
1300
            globdat.ssStatus.dwCurrentState = SERVICE_STOPPED;

Return to bug 41195