On 20/12/10 18:40 +0100, Bertrand Chenal wrote:
> Le Mon, 20 Dec 2010 18:13:58 +0100,
> Cédric Krier <[email protected]> a écrit :
> 
> > On 20/12/10 18:04 +0100, Bertrand Chenal wrote:
> > > 
> > > what about sending a signal to the process to tell him to check the
> > > file: http://docs.python.org/library/signal.html (seems to work on
> > > all platforms).
> > 
> > But I think there is no argument on signals. So how do you pass the
> > URI to process and how do you know that the client have process the
> > URI?
> > 
> 
> This is an addition to the second solution ('use a file in .config
> directory for each processes'), So running client does have to monitor
> his file continuously.
> 
> IMO it's even better with a directory: We create a new file (with a
> random name) inside a "welcome directory", we put the uri in the file
> and then send a signal to the running instance (which will check for new
> files in the directory, read them and delete them). Like that it's
> impossible to overwrite an existing uri in the "welcome file".

You try to re-implement fifo file.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpTlV2ALFp69.pgp
Description: PGP signature

Reply via email to