ports/67927: [Maintainer update] sysutils/fileschanged
Konstantin Reznichenko
kot at premierbank.dp.ua
Mon Jun 14 08:20:32 UTC 2004
>Number: 67927
>Category: ports
>Synopsis: [Maintainer update] sysutils/fileschanged
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 14 08:20:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Konstantin Reznichenko
>Release: FreeBSD 4.8-RELEASE i386
>Organization:
PREMIERBANK
>Environment:
System: FreeBSD satellite.pb.dp.ua 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue
May 27 15:04:45 EEST 2003
kot at satellite.pb.dp.ua:/usr/src/sys/compile/SATELLITE i386
>Description:
Fix for zombie (ignore SIGCHLD).
>How-To-Repeat:
>Fix:
diff -urN fileschanged.orig/Makefile fileschanged/Makefile
--- fileschanged.orig/Makefile Sun May 23 19:29:27 2004
+++ fileschanged/Makefile Mon Jun 14 11:01:00 2004
@@ -7,6 +7,7 @@
PORTNAME= fileschanged
PORTVERSION= 0.6.0
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff -urN fileschanged.orig/files/patch-handlers.c
fileschanged/files/patch-handlers.c
--- fileschanged.orig/files/patch-handlers.c Sun May 23 19:29:27 2004
+++ fileschanged/files/patch-handlers.c Mon Jun 14 10:08:25 2004
@@ -1,20 +1,23 @@
---- src/handlers.c.orig Mon Feb 23 01:42:46 2004
-+++ src/handlers.c Sun May 23 17:50:35 2004
-@@ -7,6 +7,10 @@
+--- src/handlers.c.orig Mon Feb 23 02:42:46 2004
++++ src/handlers.c Fri Jun 11 16:25:12 2004
+@@ -7,6 +7,11 @@
#include "node.h"
#include "opts.h"
#include "wl.h"
+#if defined(__FreeBSD__)
++#include <signal.h>
+#include "libgen.h"
+#endif
+
extern struct arguments_t arguments;
struct handler_t handlers[FC_HANDLER_MAX]=
{
-@@ -180,12 +184,18 @@
+@@ -180,12 +185,24 @@
}
void show_event(enum handler_enum_t id, char *filename)
{
++ struct sigaction sa;
++
+ if (arguments.fileschanged.exec_command == NULL) {
if (arguments.fileschanged.showaction)
{
@@ -23,6 +26,10 @@
fprintf(stdout, "%s\n",filename);
fflush(stdout);
+ } else {
++ sa.sa_handler = SIG_IGN;
++ sa.sa_flags = SA_NOCLDWAIT;
++ sigemptyset(&sa.sa_mask);
++ sigaction(SIGCHLD, &sa, NULL);
+ if (!fork()) {
+ execlp(arguments.fileschanged.exec_command,
arguments.fileschanged.exec_command, handlers[id].name, filename, NULL);
+ }
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list