Return to BSD News archive
Xref: sserve comp.unix.questions:51158 comp.unix.bsd:14246 Newsgroups: comp.unix.questions,comp.unix.bsd Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!pipex!sunic!trane.uninett.no!nac.no!nntp.nta.no!itoe-02!tm3an From: tm3an@itoe-02.uucp (Arnar Nesset) Subject: (Q) BSD sockets - how to handle properly Message-ID: <1994Jun27.132141.19137@nntp.nta.no> Keywords: socket, IPC Sender: news@nntp.nta.no Nntp-Posting-Host: 148.122.1.48 Organization: Norwegian Telecom, IT dep., Lillehammer Date: Mon, 27 Jun 94 13:21:41 GMT Lines: 20 I got no reply as to the necessity of using sockets to achieve IPC on my Sun on SunOS 4.1.2. I had hoped there was an easier way, as I do have a rather easy task: I start one program, which will do its business for a couple of minutes, and then hibernate, awaiting a message from program number two, which effectively should tell program one to start something. Now I've developed two small test programs, which talk to each other through a socket. According to the article from which I stole much of the code, one needs to fork off child processes to handle calls from multiple processes. Am I doing anything wrong if I skip this child process thing and just process requests as they arrive? After all, there is only one program from which I expect input. Thanks for replies via email, -- -- (o) (o) Arnar -----oOO--(_)--OOo--------------------------------------------------- arnar.nesset@ti-lillehammer.televerket.tele.no