[issue926] tcsh consumes much cpu when trying to gdb anything

Nuno Antunes sinknull at crater.dragonflybsd.org
Wed Jan 23 16:28:45 PST 2008


Nuno Antunes <nuno.antunes at gmail.com> added the comment:

Commenting out the SIGCHLD signal masking part seems to fix this issue for me.
But i'm not sure if this is a correct fix or not.

diff --git a/contrib/tcsh-6/tc.func.c b/contrib/tcsh-6/tc.func.c
index e2db430..9edd6ff 100644
--- a/contrib/tcsh-6/tc.func.c
+++ b/contrib/tcsh-6/tc.func.c
@@ -1990,10 +1990,12 @@ remotehost(void)
     int fds[2], wait_options, status;
     pid_t pid, wait_res;

+#if 0
     sa.sa_handler = SIG_DFL; /* Make sure a zombie is created */
     sigemptyset(&sa.sa_mask);
     sa.sa_flags = 0;
     sigaction(SIGCHLD, &sa, NULL);
+#endif
     mypipe(fds);
     pid = fork();
     if (pid == 0) {

----------
assignedto:  -> nant
priority:  -> bug
status: unread -> chatting

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<https://bugs.dragonflybsd.org/issue926>
_____________________________________________________





More information about the Bugs mailing list