Subject: Re: gnokii problem
To: Brett Lymn <blymn@baesystems.com.au>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: netbsd-help
Date: 10/03/2000 11:45:20
On Tue, Oct 03, 2000 at 04:33:00PM +0930, Brett Lymn wrote:
> >>Yep, that's too sad. One would think there was a -debug switch or something,
> >>but no. I added some printf's to the code and saw that the serial port
> >>thread was not running. Also, ktrace output shows that gnokii never even
> >>tries calling open(2) on the tty port.
>
> OK, I did some digging on this on the weekend. The results are that,
> yes, the serial port is opened and the parameters set. Stuff is
> output on the line and then the thread waits for responses. The
> thread is waiting for a SIGIO to be delivered but it never gets one.
> At the moment I cannot tell you if this is because the phone never
> responds (unlikely, others have this working) or because the signal is
> being blocked.
>
> I know there is some voodoo surrounding pthreads and signals, I am
> wondering if this is the cause of the failure.
Can you send me your binary so I can try with my phone? The binary I
built definately does NOT open the serial port (nothing in ktrace
output, no output from the printf's I added to the code).
-jm