svn commit: r531758 - in head/deskutils/easystroke: . files
Guido Falsi
madpilot at FreeBSD.org
Wed Apr 15 11:13:43 UTC 2020
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 {
More information about the svn-ports-all
mailing list