Skip site navigation (1) Skip section navigation (2)

Re: Can we simplify win32 threading code

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Can we simplify win32 threading code
Date: 2005-06-01 06:45:21
Message-ID: d7jllt$si8$ (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I have simplified the code according to the discussion. Now there is no pipe
or signaling threads, process access shared memory directly to pass signals.
Seems everything works fine except pg_ctl. I now have two choices to fix it:

(1) Record Shared memory name (it is already there) and the offset of
signaling shared memory in; So the pg_ctl program can access
the shared memory (since it has write down the signal number there) and
SetEvent target process;

(2) Postmaster will startup a thread monitoring messages, pg_ctl simulate
"kill" by sending postmaster a message <target_pid, signum>, then postmaster
will forward this "signum" to "target_pid";

What do you think?


In response to

pgsql-hackers by date

Next:From: Zahid KhanDate: 2005-06-01 07:21:51
Subject: ODBC
Previous:From: Hans-Jürgen SchönigDate: 2005-06-01 06:25:42
Subject: Re: NOLOGGING option, or ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group