FreeBSD Bugzilla – Attachment 43801 Details for
Bug 67927
[Maintainer update] sysutils/fileschanged
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.18 KB, created by
Konstantin Reznichenko
on 2004-06-14 09:20:25 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Konstantin Reznichenko
Created:
2004-06-14 09:20:25 UTC
Size:
1.18 KB
patch
obsolete
>--- 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); > + }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 67927
:
43800
| 43801