[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about pidfiles



--On Thu, Dec 3, 1998 9:49 pm +0000 "Tom Lees" <tom@lpsg.demon.co.uk> wrote:


> I am currently packaging imwheel. However, there is a problem.
> imwheel wants to create a pidfile when it is run. However, this
> is fundamentally against the way X works - it means only ONE
> instance of imwheel can be run on one machine at a time (as
> opposed to one per X display, which would be the correct thing
> to do).
> 
> What cna I effectively do about this (or should I email the
> author and ask its behaviour be changed)?

I would patch the program so that the pid file has the name

imwheel_display:0.0.pid

Where 'display:0.0' is the contents of the DISPLAY environment variable.

Then forward the patches upstream :-)

Jules

/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@jellybean.co.uk         |  6 Evelyn Rd        |
|  Jules aka     | jules@debian.org              |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@hermes.cam.ac.uk        |  TW9 2TF *UK*       |
+----------------+-------------------------------+---------------------+
|  Debian GNU/Linux - "Microsoft *does* have a year 2000 problem -     |
|                      and we're it!" (paraphrased from IRC)           |
\----------------------------------------------------------------------/



Reply to: