#22064: airodump-ng can eat 100% of CPU
--------------------------------------+--------------------------------
 Reporter:  notorand                  |      Owner:  developers
     Type:  defect                    |     Status:  new
 Priority:  low                       |  Milestone:
Component:  packages                  |    Version:  Chaos Calmer 15.05
 Keywords:  aircrack-ng, airodump-ng  |
--------------------------------------+--------------------------------
 airodump-ng runs always as an interactive program and thus polls for user
 input from stdin in a dedicated thread.
 If run with input redirected (from /dev/null for example), that thread
 will run very fast thus causing the whole program to easily eat 100% of
 CPU time.
 Within OpenWRT it's quite unlikely that airodump-ng will be actually run
 interactively from command line. It'll be instead run within scripts.
 Failing to properlu redirect the stdin, will stop the program from running
 in the background.
 A workaround is to use "screen" to run airodump-ng but the load, while
 lower than 100%, remains high.
 A solution could be not to start the polling thread at all (thus disabling
 the user input altogether) when stdin is not a terminal.
 I enclose here a small patch to Aircrack-g v1.2 rc2 (current) that has
 also been submitted to the author.

 [[http://forum.aircrack-ng.org/index.php/topic,1274.0.html|Reference]]

--
Ticket URL: <https://dev.openwrt.org/ticket/22064>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to