forking child processes in src/backend/main/main.c

From: "S -" <nat_lazy(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: forking child processes in src/backend/main/main.c
Date: 2003-04-24 07:46:38
Message-ID: BAY1-F93gSePLvIm5EP0000c4f4@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

HI,
In our project, we have unix socket networking going on and the Postgresql
code is the server in this process. We would want the postgresql database to
run as usual while it is transferring data (as a server) to another program
(the client, in our case, a GUI). Therefore, we would want to fork another
process that acts as the server.
Would anyone kindly suggest where would be the best place for us to call
fork() in this case?
Would this src/backend/main/main.c be a good place to put the fork() and
server code?
If yes, in which part in particular, or does it matter?
If not, in which file would it be better to put it?
Thank you,
Sumaira

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message S - 2003-04-24 08:05:18 src/backend/storage/lmgr/lock.c ----> LockAcquire()
Previous Message S - 2003-04-24 07:34:03 Putting code in main of src/backend/main/main.c