public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why does do_signal() repost deadly signals?
@ 2001-04-18 23:48 Brian J. Watson
  0 siblings, 0 replies; only message in thread
From: Brian J. Watson @ 2001-04-18 23:48 UTC (permalink / raw)
  To: Linux Kernel

If a signal's default behavior is to kill a process, do_signal() reposts that
signal before calling do_exit(). Why does it do that?

Our guess is that it prevents the exiting process from blocking for an extremely
long period of time. One example might be a process with an open NFS file. The
process has to flush its writes out to the server during the close, but the
server might be unavailable. Examining the code, it looks like the reposted
signal prevents the NFS flush from waiting on any RPC response.

Is this the reason for reposting the signal? Are there any others?

--
Brian Watson
Compaq Computer

Not subscribed to LKML. Please CC me in response.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-18 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 23:48 Why does do_signal() repost deadly signals? Brian J. Watson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox