Bug 213214

Summary: bluetooth l2ping makes an extra interval sleep before exit and does not flush line-by-line
Product: Base System Reporter: Juha Nurmela <oh5nxo>
Component: wirelessAssignee: freebsd-wireless (Nobody) <wireless>
Status: New ---    
Severity: Affects Only Me Keywords: patch
Priority: ---    
Version: 10.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
remove extra delay from l2ping and flush output line-by-line none

Description Juha Nurmela 2016-10-05 00:00:04 UTC
Created attachment 175431 [details]
remove extra delay from l2ping and flush output line-by-line

LOW PRIORITY

/usr/src/usr.sbin/bluetooth/l2ping/l2ping.c

Mainloop is oddly arranged: After each ping is sent, received (or not), _and_ reported, there is always an interval sleep, even after the last one.

Output is not flushed before sleeping, making life hard for scripts.