DragonFly bugs List (threaded) for 2008-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[issue926] tcsh consumes much cpu when trying to gdb anything
Nuno Antunes <nuno.antunes@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@lists.dragonflybsd.org>
<https://bugs.dragonflybsd.org/issue926>
_____________________________________________________
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]