Steve Youngs <steve@xxxxxxxx> writes:
> * Steve Youngs <steve@xxxxxxxx> writes:
>
> > With xwem-agent.c that is in xwem--main--2.1--patch-41 I can't use
> > XWEM.
>
> This patch makes xwem-agent usable for me...
>
> --- orig/xwem-agent/xwem-agent.c
> +++ mod/xwem-agent/xwem-agent.c
> @@ -214,7 +214,7 @@
>
> xverbose("+ SIGCHLD received ..");
>
> - while ((pid = waitpid(epid, NULL, WNOHANG)) > 0) {
> + while ((pid = wait(NULL)) > 0) {
> xverbose(" + Riping (S)XEmacs pid=%d ..", pid);
> if (pid == epid)
> epid = -1;
>
> ...which just reverts the last change to xwem-agent.c
Try out this patch instead:
--- orig/xwem-agent/xwem-agent.c
+++ mod/xwem-agent/xwem-agent.c
@@ -179,6 +179,10 @@
}
}
+ /* Remove signal handlers */
+ signal(SIGCHLD, SIG_DFL);
+ signal(SIGHUP, SIG_DFL);
+
execvp(emacs, emacs_argv);
/* Execve failed :( */
--
lg
|