Tilda uses wrong ps flag on start

Replace ps call by pgrep
Bump PORTREVISION
This commit is contained in:
Rodrigo Osorio 2017-12-07 09:46:41 +00:00
parent a706b97cb6
commit 64b3db6963
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455702
2 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= tilda
PORTVERSION= 1.3.3
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= rodrigo@FreeBSD.org

View File

@ -1,5 +1,5 @@
--- src/tilda.c.orig 2015-12-16 12:11:58 UTC
+++ src/tilda.c
--- src/tilda.c.orig 2017-09-08 22:19:35.318278000 +0300
+++ src/tilda.c 2017-09-08 22:21:22.752550000 +0300
@@ -12,6 +12,7 @@
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
@ -8,3 +8,12 @@
#define _POSIX_SOURCE /* feature test macro for signal functions */
#define _XOPEN_SOURCE /* feature test macro for popen */
@@ -230,7 +231,7 @@
static GSList *getPids() {
GSList *pids = NULL;
FILE *ps_output;
- const gchar ps_command[] = "ps -C tilda -o pid=";
+ const gchar ps_command[] = "pgrep tilda";
gchar buf[16]; /* Really shouldn't need more than 6 */
if ((ps_output = popen (ps_command, "r")) == NULL) {