Use fork/exec instead of popen to run lsof (#757)

Fixes #675
1 file changed
tree: e4725a636b9b7d3a4c06b2780bf133290dd7f125
  1. .editorconfig
  2. .gitignore
  3. .travis.yml
  4. AUTHORS
  5. Action.c
  6. Action.h
  7. Affinity.c
  8. Affinity.h
  9. AffinityPanel.c
  10. AffinityPanel.h
  11. AvailableColumnsPanel.c
  12. AvailableColumnsPanel.h
  13. AvailableMetersPanel.c
  14. AvailableMetersPanel.h
  15. BatteryMeter.c
  16. BatteryMeter.h
  17. CONTRIBUTING.md
  18. COPYING
  19. CPUMeter.c
  20. CPUMeter.h
  21. CRT.c
  22. CRT.h
  23. CategoriesPanel.c
  24. CategoriesPanel.h
  25. ChangeLog
  26. CheckItem.c
  27. CheckItem.h
  28. ClockMeter.c
  29. ClockMeter.h
  30. ColorsPanel.c
  31. ColorsPanel.h
  32. ColumnsPanel.c
  33. ColumnsPanel.h
  34. DisplayOptionsPanel.c
  35. DisplayOptionsPanel.h
  36. EnvScreen.c
  37. EnvScreen.h
  38. FunctionBar.c
  39. FunctionBar.h
  40. Hashtable.c
  41. Hashtable.h
  42. Header.c
  43. Header.h
  44. HostnameMeter.c
  45. HostnameMeter.h
  46. INSTALL
  47. IncSet.c
  48. IncSet.h
  49. InfoScreen.c
  50. InfoScreen.h
  51. ListItem.c
  52. ListItem.h
  53. LoadAverageMeter.c
  54. LoadAverageMeter.h
  55. MainPanel.c
  56. MainPanel.h
  57. Makefile.am
  58. MemoryMeter.c
  59. MemoryMeter.h
  60. Meter.c
  61. Meter.h
  62. MetersPanel.c
  63. MetersPanel.h
  64. NEWS
  65. Object.c
  66. Object.h
  67. OpenFilesScreen.c
  68. OpenFilesScreen.h
  69. Panel.c
  70. Panel.h
  71. Process.c
  72. Process.h
  73. ProcessList.c
  74. ProcessList.h
  75. README
  76. RichString.c
  77. RichString.h
  78. ScreenManager.c
  79. ScreenManager.h
  80. Settings.c
  81. Settings.h
  82. SignalsPanel.c
  83. SignalsPanel.h
  84. StringUtils.c
  85. StringUtils.h
  86. SwapMeter.c
  87. SwapMeter.h
  88. TESTPLAN
  89. TasksMeter.c
  90. TasksMeter.h
  91. TraceScreen.c
  92. TraceScreen.h
  93. UptimeMeter.c
  94. UptimeMeter.h
  95. UsersTable.c
  96. UsersTable.h
  97. Vector.c
  98. Vector.h
  99. XAlloc.c
  100. XAlloc.h
  101. autogen.sh
  102. configure.ac
  103. darwin/
  104. dragonflybsd/
  105. freebsd/
  106. htop.1.in
  107. htop.c
  108. htop.desktop
  109. htop.h
  110. htop.png
  111. linux/
  112. openbsd/
  113. scripts/
  114. solaris/
  115. test_spec.lua
  116. unsupported/
README.md

Build Status PayPal donate

htop

by Hisham Muhammad hisham@gobolinux.org (2004 - 2016)

Introduction

This is htop, an interactive process viewer. It requires ncurses. It is developed primarily on Linux, but we also have code for running under FreeBSD and Mac OS X (help and testing are wanted for these platforms!)

This software has evolved considerably over the years, and is reasonably complete, but there is always room for improvement.

Comparison between htop and classic top

  • In htop you can scroll the list vertically and horizontally to see all processes and full command lines.
  • In top you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
  • htop starts faster (top seems to collect data for a while before displaying anything).
  • In htop you don't need to type the process number to kill a process, in top you do.
  • In htop you don't need to type the process number or the priority value to renice a process, in top you do.
  • In htop you can kill multiple processes at once.
  • top is older, hence, more tested.

Compilation instructions

This program is distributed as a standard autotools-based package. See the INSTALL file for detailed instructions.

When compiling from a release tarball, run:

./configure && make

For compiling sources downloaded from the Git repository, run:

./autogen.sh && ./configure && make

By default make install will install into /usr/local, for changing the path use ./configure --prefix=/some/path.

See the manual page (man htop) or the on-line help (‘F1’ or ‘h’ inside htop) for a list of supported key commands.

If not all keys work check your curses configuration.

License

GNU General Public License, version 2 (GPL-2.0)