Bug 227115

Summary: sysutils/htop: Pressing F9 to kill a process results in htop exiting with a "htop: No such file or directory" message
Product: Ports & Packages Reporter: Philipp Engel <kidon>
Component: Individual Port(s)Assignee: Tobias Kortkamp <tobik>
Status: Closed FIXED    
Severity: Affects Some People CC: 0mp, gaod, grahamperrin, monder, shitman71
Priority: --- Keywords: patch
Version: LatestFlags: koobs: maintainer-feedback? (gaod)
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
htop.diff tobik: maintainer-approval? (gaod)

Description Philipp Engel 2018-03-30 15:49:55 UTC
Trying to kill a process with htop terminates htop and leads to the error message "htop: No such file or directory".
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2018-03-30 20:31:16 UTC
(In reply to Philipp Engel from comment #0)

I experience the same behaviour on FreeBSD 12.0-CURRENT r330529 amd64 running htop 2.1.0.26.
Comment 2 Hung-Yi Chen 2018-04-01 09:10:54 UTC
Upstream already fixed the issue.

I’ll send a PR later.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2018-04-01 09:17:38 UTC
(In reply to Hung-Yi Chen from comment #2)

Please use this issue/PR
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2018-04-02 19:25:27 UTC
https://github.com/hishamhm/htop/commit/dc050e8088e140d63865f058fa4b926c3571b783

> Fix overflow for signals >= 100.
Comment 5 Tobias Kortkamp freebsd_committer freebsd_triage 2018-04-20 09:56:06 UTC
Created attachment 192678 [details]
htop.diff

htop 2.2.0 seems to fix the problem, so can we update?
Comment 6 Mateusz Piotrowski freebsd_committer freebsd_triage 2018-04-28 00:15:15 UTC
*** Bug 227819 has been marked as a duplicate of this bug. ***
Comment 7 SF 2018-04-28 07:35:35 UTC
"sysutils/htop: htop: No such file or directory" is misleading, next time you should mension f9 within the headlines.
Comment 8 commit-hook freebsd_committer freebsd_triage 2018-05-05 00:30:40 UTC
A commit references this bug:

Author: tobik
Date: Sat May  5 00:29:42 UTC 2018
New revision: 469081
URL: https://svnweb.freebsd.org/changeset/ports/469081

Log:
  sysutils/htop: Update to 2.2.0

  Among other changes this fixes a regression where trying to kill a
  process with htop terminates htop and leads to the error message
  "htop: No such file or directory".

  Changes:	https://github.com/hishamhm/htop/compare/2.1.0-26-g697f5bb...2.2.0
  PR:		227115
  Submitted by:	tobik
  Reported by:	Philipp Engel <kidon@posteo.de>
  Approved by:	Hung-Yi Chen <gaod@hychen.org> (maintainer timeout, 2 weeks)

Changes:
  head/sysutils/htop/Makefile
  head/sysutils/htop/distinfo