Subject: Re: SE GC83 GPRS card: pppd problem
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 01/30/2006 19:26:05
In article <20060130170020.GA1309@nbholecek.uamt.feec.vutbr.cz>,
Jachym Holecek  <freza@liberouter.org> wrote:
>> On Jan 30,  5:16pm, freza@liberouter.org (Jachym Holecek) wrote:
>> -- Subject: Re: SE GC83 GPRS card: pppd problem
>> | 
>> | I did the same last night (but offline) -- the problem was in main.c
>> | (in case you really mean sys-bsd.c, I can take a look later in the
>> | evening)
>> 
>> I really meant sys-bsd.c ...
>
>dist/pppd/pppd/main.c contains unhandled corner case, the patch
>below fixed the problem I've reproduced with Alex's setup. The
>second occupy_stdfds() call is key.
>

I think that the reason you need the second occupy_stdfds() is because
of the bug I introduced that closed 0 inadvertently in sys-bsd.c. Maybe
doing both is ok, but I am not very happy with sandbagging the code without
a good reason.

christos