Re: interconnection between two processes
From: Ulrich Hobelmann (u.hobelmann_at_web.de)
Date: 07/18/05
- Next message: Gordon Burditt: "Re: interconnection between two processes"
- Previous message: stilllearning: "Re: Pseudo tty - how to find if slave program is requesting terminal input?"
- In reply to: Roman Mashak: "interconnection between two processes"
- Next in thread: Konstantin Sorokin: "Re: interconnection between two processes"
- Reply: Konstantin Sorokin: "Re: interconnection between two processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 18 Jul 2005 15:30:49 +0200
Roman Mashak wrote:
> Hello, All!
>
> I'm considering now what mechanisms to use for interconnection between 2
> processes: one is daemon, the other one is CGI-scipt. Both are running on
> the same host.
>
> What would be more comfortable and efficient to use:
> 1) pipes/FIFO
> 2) UNIX sockets
> 3) something else..
Really depends how they're supposed to communicate. If one
process creates the other one, then pipes are probably the easiest
(create pipe, then fork and exec). If you need two-way
communication, you need two pipe()s.
Closing the pipe can be the signal for the other process to exit.
-- XML is a prime example of retarded innovation. -- Erik Meijer and Peter Drayton, Microsoft Corporation
- Next message: Gordon Burditt: "Re: interconnection between two processes"
- Previous message: stilllearning: "Re: Pseudo tty - how to find if slave program is requesting terminal input?"
- In reply to: Roman Mashak: "interconnection between two processes"
- Next in thread: Konstantin Sorokin: "Re: interconnection between two processes"
- Reply: Konstantin Sorokin: "Re: interconnection between two processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|