Date: Sat, 30 Jun 2007 16:41:42 +0200 (MEST) From: Michiel Boland <michiel@boland.org> To: freebsd-current@freebsd.org Subject: tcsh hangs in sigsuspend Message-ID: <Pine.GSO.4.64.0706301632320.29496@neerbosch.nijmegen.internl.net>
next in thread | raw e-mail | index | archive | help
Hi. I can no longer do simple things like kill `cat pidfile` in tcsh. After some debugging I noticed that tcsh hangs in sigsuspend in line 512 of sh.proc.c. So I guess it (tcsh) executed 'cat pidfile', and now waits for the process to terminate. But unless I'm not looking properly, there appears to be a race condition here. Tcsh blocks the SIGCHLD signal *after* it forks the child, not before. So the child could wel have exited between the call to fork and the call to sigprocmask. In that case, would not the sigsuspend hang forever? Also, I noticed that gdb gets very confused if I try to debug tcsh with a backticked command like the one above. (I guess this is the same as bin/112408) Cheers Michiel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0706301632320.29496>