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". Regards, Gerhard