mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
htop: bump version.
* doesn't to output anything on x86_64.
This commit is contained in:
@@ -4,9 +4,9 @@ is a text-mode application (for console or X terminals) and requires ncurses."
|
||||
HOMEPAGE="http://hisham.hm/htop/"
|
||||
COPYRIGHT="2004-2016 Hisham Muhammad"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/hishamhm/htop/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="636c1e8b703058e793e8d25423af4b74059290ef9e48fa261ba58555069517b5"
|
||||
REVISION="3"
|
||||
CHECKSUM_SHA256="1e93e6743dddad254fac2ad0d83b00a82173c75ecbd6ef6f7d55da690eb64b92"
|
||||
|
||||
PATCHES="htop-$portVersion.patchset"
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
From 7c7c23526c63e255b9404e38c0cf9f3f720fe664 Mon Sep 17 00:00:00 2001
|
||||
From e1f3cb8a03ad80ddd92c1c194a95334dce2f793f Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Reznikov <diver@gelios.net>
|
||||
Date: Fri, 25 Mar 2016 14:36:50 +0300
|
||||
Subject: Haiku doesn't have {get,set}priority yet
|
||||
|
||||
|
||||
diff --git a/Process.c b/Process.c
|
||||
index dddd7fc..58880b2 100644
|
||||
index 8e2abb6..c5e7680 100644
|
||||
--- a/Process.c
|
||||
+++ b/Process.c
|
||||
@@ -519,6 +519,7 @@ void Process_toggleTag(Process* this) {
|
||||
@@ -520,6 +520,7 @@ void Process_toggleTag(Process* this) {
|
||||
bool Process_setPriority(Process* this, int priority) {
|
||||
uid_t euid = geteuid();
|
||||
seteuid(getuid());
|
||||
(void) seteuid(getuid());
|
||||
+#ifdef HAVE_SETPRIORITY
|
||||
int old_prio = getpriority(PRIO_PROCESS, this->pid);
|
||||
int err = setpriority(PRIO_PROCESS, this->pid, priority);
|
||||
seteuid(euid);
|
||||
@@ -526,6 +527,7 @@ bool Process_setPriority(Process* this, int priority) {
|
||||
(void) seteuid(euid);
|
||||
@@ -527,6 +528,7 @@ bool Process_setPriority(Process* this, int priority) {
|
||||
this->nice = priority;
|
||||
}
|
||||
return (err == 0);
|
||||
@@ -25,5 +25,5 @@ index dddd7fc..58880b2 100644
|
||||
|
||||
bool Process_changePriorityBy(Process* this, size_t delta) {
|
||||
--
|
||||
2.7.0
|
||||
2.13.1
|
||||
|
||||
Reference in New Issue
Block a user