[argyllcms] Re: ubuntu-10.10-desktop-amd64: dispcal -D5 -? hangs

  • From: Gerhard Fuernkranz <nospam456@xxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Wed, 20 Apr 2011 22:42:44 +0200

Am 20.04.2011 22:31, schrieb Gerhard Fuernkranz:
Am 20.04.2011 21:20, schrieb Martin Johnson:
I was comparing the strace output of dispcal -D5 -? from my amd-64 system 
(which hangs) versus my 32 bit system (which works) and I see this (just before 
it hangs):

open("/dev/ttyS2", O_RDWR|O_NOCTTY)     = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
open("/dev/ttyS2", O_RDWR|O_NOCTTY>>  hangs here

Anybody knows what that means ?

ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---

Sys get's restarted and changes the window ??


This does not appear on my 32 bit system:

open("/dev/ttyS2", O_RDWR|O_NOCTTY)     = 6
close(6)                                = 0

Thanks

If open() blocks on a serial port, then a typical reason is that modem control is enabled for this 
tty (i.e. the CLOCAL flag not set, see "man termios"), but the attached device does not 
assert the DSR signal. I.e. open() waits until the device reports "I am ready".

Invoke "stty -a -F /dev/ttyS2" in order to check the settings of the tty. Look for "clocal" 
(-> no modem control) versus "-clocal" (-> modem control) in the output.

Regards,
Gerhard


Other related posts: