Modify

#22064 closed defect (moved_to_github)

airodump-ng can eat 100% of CPU

Reported by: notorand Owned by: developers
Priority: low Milestone:
Component: packages Version: Chaos Calmer 15.05
Keywords: aircrack-ng, airodump-ng Cc:

Description

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.

Reference

Attachments (1)

check_not_a_term.diff (764 bytes) - added by notorand 23 months ago.
Patch not to start the input polling thread when not in a terminal

Download all attachments as: .zip

Change History (3)

Changed 23 months ago by notorand

Patch not to start the input polling thread when not in a terminal

comment:1 Changed 23 months ago by yousong

aircrack-ng is part of the packages feed at github.com (https://github.com/openwrt/packages), please consider open a issue or pr there.

comment:2 Changed 23 months ago by swalker

  • Resolution set to moved_to_github
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.