[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't sync to a palm vx



On Thu, 01 Aug 2002 13:27:11 +0200, Mario Camou writes:
>I'd check if there's any other process that might be holding ttyS1 
>open... lsof might be useful there.

Nope, nothing listening on any of the serial ports.

If I read the strace-ouput from pilot-xfer -l correctly (probably I
 don't):

<...>
24480 open("/dev/null", O_RDWR)         = 3
24480 open("/dev/ttyS0", O_RDWR|O_NONBLOCK) = 4
24480 ioctl(4, SNDCTL_TMR_TIMEBASE, {c_iflags=0x4, c_oflags=0,
 c_cflags=0x8bd, c_lflags=0x80, c_line=0, c_cc[VMIN]=1, c_cc[VTIME]=0,
 c_cc="\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x2f\x9c\xf5\xff\xbf\x92\xc3\x13\x40\x04\x00\x00\x00\x60"}) = 0
24480 ioctl(4, SNDCTL_TMR_TIMEBASE, {c_iflags=0x4, c_oflags=0,
 c_cflags=0x8bd, c_lflags=0x80, c_line=0, c_cc[VMIN]=1, c_cc[VTIME]=0,
 c_cc="\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x2f\x1c\xf6\xff\xbf\xb7\x10\x03\x40\x04\x00\x00\x00\xe0"}) = 0
24480 ioctl(4, SNDCTL_TMR_START, {c_iflags=0x4, c_oflags=0,
 c_cflags=0x8bd, c_lflags=0x80, c_line=0, c_cc[VMIN]=1, c_cc[VTIME]=0,
 c_cc="\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x2f\x1c\xf6\xff\xbf\x62\x11\x03\x40\x04\x00\x00\x00\x00"}) = 0
24480 ioctl(4, SNDCTL_TMR_TIMEBASE, {c_iflags=0x4, c_oflags=0,
 c_cflags=0x8bd, c_lflags=0x80, c_line=0, c_cc[VMIN]=1, c_cc[VTIME]=0,
 c_cc="\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x2f\x1c\xf6\xff\xbf\x62\x11\x03\x40\x04\x00\x00\x00\x00"}) = 0
24480 fcntl64(4, F_GETFL)               = 0x802 (flags O_RDWR|O_NONBLOCK)
24480 fcntl64(4, F_SETFL, O_RDWR)       = 0
24480 dup2(4, 3)                        = 3
24480 close(4)                          = 0
<...>

it opens /dev/ttyS0, only to close it soon afterwards (yes, I have it 
 on ttyS0 this time).

But what comes next seems like an endless loop:

24480 select(4, [3], NULL, NULL, NULL)  = 1 (in [3])
24480 read(3, "\0", 1)                  = 1
24480 select(4, [3], NULL, NULL, NULL)  = 1 (in [3])
24480 read(3, "\0", 1)                  = 1
<repeated ad nauseum>

Endlessly reading from /dev/null?

I'm stumped.

cheers,
&rw
-- 
-- The difference between sex and death is that with death
-- you can do it alone and no one is going to make fun of you.
-- - Woody Allen


Attachment: signature.ng
Description: PGP signature


Reply to: