Inter-process communication, how? Part 2

Hendrik van Rooyen mail at microcorp.co.za
Mon Dec 24 02:58:20 EST 2007


<ecir.hana at gmail.com> wrote:

> What I don't like about FIFO, is that on Unix they are persistent
> files. So whatever happens to Manager they would stay there...
> I was just wondering if there's another way of doing the above and if
> not, I would probably go with FIFO. Thanks!

The persistence bit is true, and can lead to puzzling behaviour when you 
are still debugging, as the recipient can get a mix of old and new data 
after a crash.

It is probably best to delete them and create them for every run, either 
in a BASH script, or in the Python programme that first opens the pipe.

As for the alternative, on Linux, sockets seem to hang around for a while
after a run, until the OS deletes them, so that repetitive execution can give
you a socket in use error.

So you pays yer money and you takes yer pick.

- Hendrik




More information about the Python-list mailing list