Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2020 11:13:42 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r531758 - in head/deskutils/easystroke: . files
Message-ID:  <202004151113.03FBDgQn051538@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Wed Apr 15 11:13:42 2020
New Revision: 531758
URL: https://svnweb.freebsd.org/changeset/ports/531758

Log:
  Import patch from upstream pull request to stop easystroke creating
  zombie processes for each spawned process.
  
  Obtained from:	https://github.com/thjaeger/easystroke/pull/6

Added:
  head/deskutils/easystroke/files/patch-actiondb.cc   (contents, props changed)
Modified:
  head/deskutils/easystroke/Makefile

Modified: head/deskutils/easystroke/Makefile
==============================================================================
--- head/deskutils/easystroke/Makefile	Wed Apr 15 11:11:26 2020	(r531757)
+++ head/deskutils/easystroke/Makefile	Wed Apr 15 11:13:42 2020	(r531758)
@@ -3,7 +3,7 @@
 
 PORTNAME=	easystroke
 PORTVERSION=	0.6.0
-PORTREVISION=	21
+PORTREVISION=	22
 CATEGORIES=	deskutils
 MASTER_SITES=	SF
 

Added: head/deskutils/easystroke/files/patch-actiondb.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/easystroke/files/patch-actiondb.cc	Wed Apr 15 11:13:42 2020	(r531758)
@@ -0,0 +1,20 @@
+--- actiondb.cc.orig	2013-03-27 15:52:38 UTC
++++ actiondb.cc
+@@ -118,14 +118,9 @@ template<class Archive> void StrokeInfo::serialize(Arc
+ using namespace std;
+ 
+ void Command::run() {
+-	pid_t pid = fork();
+-	switch (pid) {
+-		case 0:
+-			execlp("/bin/sh", "sh", "-c", cmd.c_str(), NULL);
+-			exit(1);
+-		case -1:
+-			printf(_("Error: can't execute command \"%s\": fork() failed\n"), cmd.c_str());
+-	}
++	gchar* argv[] = {(gchar*) "/bin/sh", (gchar*) "-c", NULL, NULL};
++	argv[2] = (gchar *) cmd.c_str();
++	g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
+ }
+ 
+ ButtonInfo Button::get_button_info() const {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004151113.03FBDgQn051538>