SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 01:21 PM
Ian Chard
 
Posts: n/a
Default Slightly OT: Adobe Reader 8.1.2 + Firefox startup race condition

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
exit