Bug 21595

Summary: lpd don't set socket option SO_REUSEADDR on inet socket
Product: Base System Reporter: vova <vova>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description vova 2000-09-27 14:40:00 UTC
lpd don't set socket option SO_REUSEADDR on inet socket
so it is not possible to start lpd just after stop

How-To-Repeat: lpd; sleep 1; killall lpd; lpd

last lpd will not started with complain in log:
Sep 27 17:15:40 gw lpd[54009]: bind: Address already in use
Comment 1 Garrett Wollman freebsd_committer freebsd_triage 2000-09-27 20:03:28 UTC
State Changed
From-To: open->closed

A slightly modified version of the patch applied in rev. 1.14 of lpd.c.