Bug 213214 - bluetooth l2ping makes an extra interval sleep before exit and does not flush line-by-line
Summary: bluetooth l2ping makes an extra interval sleep before exit and does not flush...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-10-05 00:00 UTC by Juha Nurmela
Modified: 2016-10-05 03:25 UTC (History)
0 users

See Also:


Attachments
remove extra delay from l2ping and flush output line-by-line (1.05 KB, patch)
2016-10-05 00:00 UTC, Juha Nurmela
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.