Re: [HACKERS] [PATCHES] fork/exec patch - Mailing list pgsql-hackers-win32

From Steve Tibbett
Subject Re: [HACKERS] [PATCHES] fork/exec patch
Date
Msg-id 546CD3100F4C0F42A30A94C0F2B349148FC5DF@zimmail1.zim.zimismobile.com
Whole thread Raw
List pgsql-hackers-win32
>IMNSHO it might be easier in the long run to work with message
>handlers instead of events.  Map the necessary signals to messages
>in the WM_APP space and broadcast them (blocking: sendmessage,
>nonblocking: postmessage) with the signal in LPARAM and the pid in
>WPARAM, and the 'signalee' takes action following a switch.  This
>will minimize the win32 API code except for implementing the callback
>into each backend.

I'd say avoid this if you can.. shared memory and events is cleaner in
that messages are more for GUI apps than for services.. otherwise
you're going to have a window handle and a message pump around just
for this.

Also, there's no security on an HWND, so unless you're going to verify
the permissions some other way you'd lose the security you have
available
to protect you from any process being able to send you signals.  This is

the basis for the Shatter attacks on win32.

--
Steve Tibbett
stibbett@zim.biz


pgsql-hackers-win32 by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: [HACKERS] [PATCHES] fork/exec patch
Next
From: Bruce Momjian
Date:
Subject: Re: Build error in src/interfaces