Autcsrgv.160
net.bugs.4bsd
utcsrgv!thomson
Fri Mar 19 15:47:51 1982
Issig console messages
We have found two ways in 4.1BSD that an "issig" console message can be
produced.  The first occurs when a stopped process is restarted untraced,
and is corrected by adding to routine issig() in file sig.c the
lines marked by a '$' below:

                       } while (!procxmt() && p->p_flag&STRC);

               $       /*
               $        * If the traced bit got turned off,
               $        * then put the signal taken above back into p_sig
               $        * and go back up to the top to rescan signals.
               $        * This ensures that siga0 and u_signal are consistent.
               $        */
               $       if ((p->p_flag&STRC) == 0) {
               $               p->p_sig |= sigmask;
               $               continue;       /* go back and retry */
               $       }

                       /*
                        * If parent wants us to take the signal,
                        * then it will leave it in p->p_cursig;
                        * otherwise we just look for signals again.
                        */
The second is due to an incorrect correspondence between signal number
and sigmask when resetting caught signals during an exec(), and is
corrected by changing one line in routine setregs() of file sys1.c from
       for(rp = &u.u_signal[0], sigmask = 1L; rp
<HR>
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
<P>
1. There is no money collected for the text(s) of the articles.
<BR>
2. The following notice remains appended to each copy:
<P>
<EM>The Usenet Oldnews Archive: Compilation Copyright&copy 1981, 1996
<BR> Bruce Jones, Henry Spencer, David Wiseman.</EM>
<P>
<HR>
Goto <A HREF="82.03.22_cmcl2.335_net.bugs.4bsd,net.bugs.v7.html">NEXT</A> article in NET.bugs.4bsd Newsgroup
<BR>Return to <A HREF="NET.bugs.4bsd-index.html">NET.bugs.4bsd index</A>
<BR>Return to the
       <A HREF="../index.html">Usenet Oldnews Archive index</A>
</HTML>

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.