Date: Mon, 14 Jun 2004 11:18:55 +0300 From: "Konstantin Reznichenko" <kot@premierbank.dp.ua> To: <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/67927: [Maintainer update] sysutils/fileschanged Message-ID: <000b01c451e8$3c1c80e0$ac02a8c0@europe> Resent-Message-ID: <200406140820.i5E8KQIS057485@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c451e8$3c1c80e0$ac02a8c0>