Hi,

This might save a few people some pain...

I've recently upgraded our Sun Ray servers to Adobe Reader 8.1.2, and
now every so often when browsing to a pdf document, Firefox says

"Could not launch Adobe Reader 8.1.2. Please make sure it exists in
your PATH [...]"

This seems to be caused by a race condition at startup. The browser
plugin runs "/bin/acroread -version", which simply echoes the version
number and exits. When it's working, this happens:

25436: write(1, " 8 . 1 . 2\n", 6) = 6
25348/1: read(56, " 8 . 1 . 2\n", 20) = 6
25436: _exit(0)
25348/1: close(56) = 0

i.e. the string is written by the script and immediately read by the
browser.

However, occasionally this happens:

23119: write(1, " 8 . 1 . 2\n", 6) = 6
23119: _exit(0)
23008/1: Received signal #18, SIGCLD, in read() [caught]
23008/1: siginfo: SIGCLD CLD_EXITED pid=23119 status=0x0000
23008/1: read(58, 0xFFBFB5C0, 20) Err#4 EINTR

i.e. the read() call is interrupted by the SIGCLD generated by the
exiting /bin/acroread process.

I've inserted a "sleep 5" after line 11 of the /bin/acroread script to
try to alleviate this, but I haven't tested it fully.

Cheers
- Ian

--
Ian Chard, Senior Unix and Network Gorilla | E: ian.chard@sers.ox.ac.uk
Systems and Electronic Resources Service | T: 80587 / (01865) 280587
Oxford University Library Services | F: (01865) 242287