svn commit: r531769 - in branches/2020Q2/deskutils/easystroke: . files
Guido Falsi
madpilot at FreeBSD.org
Wed Apr 15 14:55:04 UTC 2020
Author: madpilot
Date: Wed Apr 15 14:55:03 2020
New Revision: 531769
URL: https://svnweb.freebsd.org/changeset/ports/531769
Log:
MFH: r531758
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
Approved by: portmgr (blanket: runtime fix)
Added:
branches/2020Q2/deskutils/easystroke/files/patch-actiondb.cc
- copied unchanged from r531758, head/deskutils/easystroke/files/patch-actiondb.cc
Modified:
branches/2020Q2/deskutils/easystroke/Makefile
Directory Properties:
branches/2020Q2/ (props changed)
Modified: branches/2020Q2/deskutils/easystroke/Makefile
==============================================================================
--- branches/2020Q2/deskutils/easystroke/Makefile Wed Apr 15 14:21:57 2020 (r531768)
+++ branches/2020Q2/deskutils/easystroke/Makefile Wed Apr 15 14:55:03 2020 (r531769)
@@ -3,7 +3,7 @@
PORTNAME= easystroke
PORTVERSION= 0.6.0
-PORTREVISION= 21
+PORTREVISION= 22
CATEGORIES= deskutils
MASTER_SITES= SF
Copied: branches/2020Q2/deskutils/easystroke/files/patch-actiondb.cc (from r531758, head/deskutils/easystroke/files/patch-actiondb.cc)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2020Q2/deskutils/easystroke/files/patch-actiondb.cc Wed Apr 15 14:55:03 2020 (r531769, copy of r531758, head/deskutils/easystroke/files/patch-actiondb.cc)
@@ -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