Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 22:21:48 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        David Xu <davidxu@freebsd.org>
Cc:        src-committers@freebsd.org, "" <cvs-src@freebsd.org>, "" <cvs-all@freebsd.org>
Subject:   Re: cvs commit: src/usr.bin/su su.c
Message-ID:  <20030311220538.U24745@gamplex.bde.org>
In-Reply-To: <000501c2e7ad$48ab2790$f001a8c0@davidw2k>
References:  <200303110010.h2B0ANe3061768@repoman.freebsd.org> <20030311180357.E23929@gamplex.bde.org> <000501c2e7ad$48ab2790$f001a8c0@davidw2k>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Mar 2003, David Xu wrote:

> Unfortunately I had ignored code for child process :(
> BTW, The SIGTSTP handler will be reset by execsigs() in kernel,
> The garbage sa_tstp is only effective in very short time.

execsigs() only resets caught signals, so the garbage lives at least a
little longer if happened to set to SIG_IGN.  For the same reason, we
can't depend on execsigs() changing SIG_IGN to SIG_DFL for the parent.

I think the stack garbage is always 0 on i386 (since we're in main()
and have barely used the stack), and SIG_DFL happens to be 0, so the
contents of the garbage is probably correct for setting the signal to
SIG_DFL except it doesn't have SA_RESTART set.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030311220538.U24745>