Getting a name for a mkfifo
faure at kde.org
Sun Aug 7 23:15:01 CEST 2005
On Sunday 07 August 2005 00:16, David Faure wrote:
> On Saturday 06 August 2005 18:45, Rafał Rzepecki wrote:
> > On Saturday, 6 of August 2005 17:15, David Faure wrote:
> > > On Saturday 06 August 2005 16:21, Tomas Mecir wrote:
> > > > On 8/6/05, Piotr Szymański <niedakh at gmail.com> wrote:
> > > > > Hi,
> > > > > What class in KDE do I need to get a decent not taken name for a
> > > > > mkfifo, i'd use KTempFile, but it creates a file there right? Any
> > > > > ideas?
Waldo tells me that mkfifo doesn't follow symlinks, so there's no symlink-race
possible. Only a "I create the file before the app and the app fails" problem,
no security issue there.
So how about locateLocal("tmp", "kmyapp-fifo") ?
Using the "tmp" resource ensures that it's per-user and per-host already,
no risk of multiple kde sessions running into each other.
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-soc