Skip to content

Commit 9d9f910

Browse files
committed
MFH: r531758
Import patch from upstream pull request to stop easystroke creating zombie processes for each spawned process. Obtained from: thjaeger/easystroke#6 Approved by: portmgr (blanket: runtime fix)
1 parent e291cfa commit 9d9f910

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

deskutils/easystroke/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
PORTNAME= easystroke
55
PORTVERSION= 0.6.0
6-
PORTREVISION= 21
6+
PORTREVISION= 22
77
CATEGORIES= deskutils
88
MASTER_SITES= SF
99

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- actiondb.cc.orig 2013-03-27 15:52:38 UTC
2+
+++ actiondb.cc
3+
@@ -118,14 +118,9 @@ template<class Archive> void StrokeInfo::serialize(Arc
4+
using namespace std;
5+
6+
void Command::run() {
7+
- pid_t pid = fork();
8+
- switch (pid) {
9+
- case 0:
10+
- execlp("/bin/sh", "sh", "-c", cmd.c_str(), NULL);
11+
- exit(1);
12+
- case -1:
13+
- printf(_("Error: can't execute command \"%s\": fork() failed\n"), cmd.c_str());
14+
- }
15+
+ gchar* argv[] = {(gchar*) "/bin/sh", (gchar*) "-c", NULL, NULL};
16+
+ argv[2] = (gchar *) cmd.c_str();
17+
+ g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
18+
}
19+
20+
ButtonInfo Button::get_button_info() const {

0 commit comments

Comments
 (0)