[25785] in Athena Bugs
solaris 9.3.8: mozilla
daemon@ATHENA.MIT.EDU (John Hawkinson)
Fri Jul 9 23:00:16 2004
Date: Fri, 9 Jul 2004 23:00:06 -0400 (EDT)
Message-Id: <200407100300.i6A306AQ028692@coleco-sidewinder.mit.edu>
To: bugs@mit.edu
From: John Hawkinson <jhawk@mit.edu>
Errors-To: bugs-bounces@mit.edu
Mid-session, mozilla -remote stopped working for me.
sh -x'ing mozilla, I get:
+ /usr/athena/lib/mozilla/mozilla-xremote-client ping()
found_running=false
+ [ false = false ]
Now, looking at the code, stderr is thrown away:
# See if there is a running instance of Mozilla.
if $moz_remote "ping()" >/dev/null 2>&1 ; then
found_running=true
else
found_running=false
fi
This is a bit annoying, since it would have been quite handy
to have seen it:
[coleco-sidewinder!jhawk] ~> env LD_LIBRARY_PATH=/usr/athena/lib/mozilla:/usr/athena/lib/mozilla/plugins:/usr/sfw/lib /usr/athena/lib/mozilla/mozilla-xremote-client 'ping()'
/usr/athena/lib/mozilla/mozilla-xremote-client: Error: Failed to send command: No error string reported..
I'm at a loss to conclude why this is happening, but if the script
had something clever with pipes:
if $moz_remote "ping()" >/dev/null 2>&3 |
grep -v '^Error: Failed to find a running server\.$' >&2 ; then
found_running=true
else
found_running=false
fi
It would have been more useful to the user...
--jhawk