[10115] in Athena Bugs

home help back first fref pref prev next nref lref last post

Bug in standard 7.4 xsession script

daemon@ATHENA.MIT.EDU (Derek Atkins)
Sun Dec 6 15:24:12 1992

To: bugs@MIT.EDU
Date: Sun, 06 Dec 92 15:23:53 EST
From: Derek Atkins <warlord@MIT.EDU>

When the standard xsession script starts zwgc, it puts it into
the background:

        # Start Zephyr client, and if zephyr started okay, send
        # message of the day as windowgram
        if ($?NOCALLS) then
                ( zwgc -f /usr/athena/lib/zephyr/zwgc.desc \
                                -subfile /dev/null && \
                  get_message -new -zephyr &)
        else
                ( zwgc && get_message -new -zephyr &)
        endif

Zwgc gets put into the background, and might not complete its
initialization before the next set of commands are run.  This works ok
for get_message, however, this is a bug since the NEXT thing that
happens is that .startup.X is called.  This means that if zwgc DOESNT
start fast enough, the startup will get to .startup.X before zwgc has
completely initialized, and "znol" might fail.

This bug causes a race condition.  Usually its not a problem, but
we've gotten a few reports here at the SIPB about it.  

The fix is to NOT put zwgc into the background.

	( zwgc && get_message -new -zephyr )

-derek

home help back first fref pref prev next nref lref last post