[264] in Zephyr_Bugs
Re: Can't run multiple zwgc sessions
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Mar 15 11:04:37 1991
Date: Fri, 15 Mar 91 11:04:23 EST
From: Ken Raeburn <Raeburn@MIT.Edu>
To: James J Dempsey <jjd@alexander.bbn.com>
Cc: bug-zephyr@ATHENA.MIT.EDU
In-Reply-To: [0263] in Zephyr_Bugs
If I am running zwgc on my workstation under X and while that session
is still active, I dial up from home and start zwgc -ttymode, and
later exit that session, the original X based session is broken
because the intermediate session has deleted the file /tmp/wg.<uid>
upon exiting. It seems that this temp file name should be more
unique. Perhaps it should have the pid of the zwgc process in it
somewhere.
Some standard pathname needs to be used, so that the "zctl" command
can find the file if it gets run later. It doesn't necessarily know
the process-id of the zwgc process, so the information has to be
communicated in some way. If the environment variable WGFILE is set,
this is used as the pathname for the file.
At Athena, we've modified the X login software to set $WGFILE for the
entire login session, including the zwgc process; this allows remotely
logged-in users to have separate wg files. However, this doesn't
necessarily help in the case of someone logging in remotely twice and
running a zwgc in each session.
If you want to be able to run two zwgc processes on a machine, you
could modify your X session startup script to set WGFILE based on some
process-id. (It doesn't need to refer to any particular process, just
any one associated with that session.)
P.S. Is there a newer version of Zephyr I should be running instead?
Not yet. I hope to be getting a new version out soon.