diff options
author | Brian J. Murrell <brian@interlinx.bc.ca> | 2017-12-13 07:48:01 -0500 |
---|---|---|
committer | Brian J. Murrell <brian@interlinx.bc.ca> | 2018-04-11 23:27:38 -0400 |
commit | 5cff94399d39016790921552a13719214cb46d73 (patch) | |
tree | 0379aa4f5e98566bf7bce6e07990a710335ef63b /net/foolsm/patches | |
parent | b570344ee5cb4072a22e7d468ae0d64e2a516c12 (diff) |
foolsm: Add package foolsm
Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
Diffstat (limited to 'net/foolsm/patches')
-rw-r--r-- | net/foolsm/patches/100-plugin-export-dir.patch | 11 | ||||
-rw-r--r-- | net/foolsm/patches/110-missing-WAIT_ANY.patch | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/net/foolsm/patches/100-plugin-export-dir.patch b/net/foolsm/patches/100-plugin-export-dir.patch new file mode 100644 index 000000000..028413f89 --- /dev/null +++ b/net/foolsm/patches/100-plugin-export-dir.patch @@ -0,0 +1,11 @@ +--- a/defs.h 2016-11-10 07:22:50.275506874 -0500 ++++ b/defs.h 2016-11-10 07:22:58.639469850 -0500 +@@ -22,7 +22,7 @@ + + #define min(x, y) ((x)<(y) ? (x) : (y)) + +-#define PLUGIN_EXPORT_DIR "/var/lib/foolsm" ++#define PLUGIN_EXPORT_DIR "/tmp" + + #endif + diff --git a/net/foolsm/patches/110-missing-WAIT_ANY.patch b/net/foolsm/patches/110-missing-WAIT_ANY.patch new file mode 100644 index 000000000..4409a8c42 --- /dev/null +++ b/net/foolsm/patches/110-missing-WAIT_ANY.patch @@ -0,0 +1,11 @@ +--- a/forkexec.c 2017-11-02 07:45:28.679821530 -0400 ++++ /bforkexec.c 2017-11-02 07:44:54.527653043 -0400 +@@ -108,7 +108,7 @@ + int script_status; + pid_t pid; + +- while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) { ++ while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) { + if(pid == -1) { + if(cfg.debug >= 9 && errno != ECHILD) + syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno)); |