Add pthread_join() after pthread_cancel() to wait for thread termination
before creating a new one. This prevents the race condition where multiple
runner threads could accumulate and deadlock.
Add mutex protection to Net::collect() to prevent concurrent interface
access when USB devices are hot-plugged/unplugged. This resolves segfaults
during interface map operations.
The crash was triggered by concurrent access to the interface list during
USB device removal, causing iterator invalidation during cleanup loops.
Install signal handlers for SIGSEGV, SIGABRT, SIGTRAP, SIGBUS, and SIGILL
to restore terminal state before crashing. This prevents leaving the terminal
in a broken state if btop crashes unexpectedly.
Changing line in btop_input.cpp that compared first 2 characters of input to Fx::e.
Instead it now compares first character of input to first character of Fx::e and
checks that the length is greater then 1
This allows systems that send <ESC>OA and so on for the arrow keys
instead of <ESC>[A
This adds the ability to change the nice value of a process from within
btop. A new menu is introduced, accessible by pressing 'N', which allows
the user to input a new nice value for the selected process.
Fixes#1245
This patch implements zh_TW localization to the XDG desktop entry of the
application, according to the "Localized values for keys" chapter of the
Desktop Entry Specification, version 1.5.
An additional translation variant for the "process" keyword is added, as
both variants are considered to be used in the locale.
Refer-to: Localized values for keys | Desktop Entry Specification <https://specifications.freedesktop.org/desktop-entry-spec/latest/localized-keys.html>
Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
This patch implements the necessary changes to allow the application desktop entry and icon to appear in the snap distribution user's desktop menu.
The SVG variant of the application is not used as currently it'll not rendered properly in the KDE Plasma desktop environment.
Refer-to: 448234 – Usage of Qt SVG renderer causes some 3rd-party app icons to be mis-rendered <https://bugs.kde.org/show_bug.cgi?id=448234>
Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
The device name used for a given mount doesn't always correspond to the
entry in /sys/block. For example, my rootfs uses /dev/mapper/root since
it's on LUKS, but its stats are found in /sys/block/dm-0. By using
/sys/dev/block with the major/minor device numbers in
/proc/self/mountinfo, we can get a correct path reliably. This also
works for disk partitions, without requiring any string manipulation!
This should fix#140.