mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
foolsm: Add package foolsm
Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
(cherry picked from commit 5cff94399d)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
Reference in New Issue
Block a user