Bug 28839

Summary: ppp hangs if you set device to be a non-existant file
Product: Base System Reporter: hburch <hburch>
Component: miscAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description hburch 2001-07-09 18:20:01 UTC
If you set device ppp to a non-existant file, ppp seems to hang.  Moreover, it seems to become unkillable.

How-To-Repeat: ppp -interactive

set device "/dev/NOSUCHFILE"
term
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2001-07-09 18:41:28 UTC
State Changed
From-To: open->feedback

A *lot* has happened to the ppp code since March 22nd. 
Can you try the same after updating your sources to a recent -stable? 
All I can get is this: 

[root@ringworld:v0 ~]# ppp -interactive 
Working in interactive mode 
Using interface: tun0 
ppp ON ringworld> set device /dev/nonesuch 
ppp ON ringworld> term 
Warning: deflink: /dev/nonesuch: Bad file descriptor 
Failed to open /dev/nonesuch 
ppp ON ringworld> 

..or if by 'nonexistent' you meant a serial device which does not 
really correspond to a serial port connected to a mode.. 

[root@ringworld:v0 ~]# ppp -interactive 
Working in interactive mode 
Using interface: tun0 
ppp ON ringworld> set device /dev/cuaa0 
ppp ON ringworld> term 
deflink: Entering terminal mode on /dev/cuaa0 
Type `~?' for help 

Packet mode. 
ppp ON ringworld> 

Just after the 'Type ~? for help ' prompt, I typed ~p as per the ppp(8) 
manpage, to switch from terminal to packet mode. 


In any case, update your FreeBSD to a recent -stable, and then 
reply to this message, CC'ing freebsd-gnats-submit@FreeBSD.org, 
so that your reply enters the PR audit trail.
Comment 2 Brian Somers freebsd_committer freebsd_triage 2001-07-09 19:03:42 UTC
Responsible Changed
From-To: freebsd-bugs->brian

I look after ppp
Comment 3 Brian Somers 2001-07-09 19:04:53 UTC
> >Number:         28839
> >Category:       misc
> >Synopsis:       ppp hangs if you set device to be a non-existant file

I get this:

$ ppp
Working in interactive mode
Using interface: tun1
ppp ON gw> set device /dev/NOSUCHFILE
ppp ON gw> o
Warning: USR: /dev/NOSUCHFILE: Bad file descriptor
ppp ON gw> q

What does your machine say if you ``set log local phase lcp ipcp chat 
command'' ?  Maybe you're just seeing a redial pause ?
-- 
Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>
Comment 4 Brian Somers freebsd_committer freebsd_triage 2001-07-30 19:41:22 UTC
State Changed
From-To: feedback->closed

No response from the submitter