cc: [EMAIL PROTECTED] Subject: Re: Re: [ast-developers] Endless loop in SHLVL 2 --------
I have tracked this problem down to a compiler bug or a misundersanding on my part. The problem is in the module sh/xec.c in the function sh_ntfork(). The problem is that the variable jobwasset is reset to its original value after a longjmp. The value of jobwassset is initialized to 0 at the beginning. After the setjmp, the value is set to 1. Since this is not a register variable, I would expect that the value would remain 1 after the longjmp. I changed to code to declare jobwasset to be volatile but I don't beleive that this is required by the C standard. As a result, the SIGTTOU signal was not being set back to SIG_IGN which caused a problem with tty_set(). David Korn [EMAIL PROTECTED] _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
