9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] clunk clunk
@ 2006-01-03 19:28 Bruce Ellis
  2006-01-03 19:38 ` Sascha Retzki
  2006-01-03 19:46 ` Russ Cox
  0 siblings, 2 replies; 24+ messages in thread
From: Bruce Ellis @ 2006-01-03 19:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Why do I have a few hundred processes that are exiting
but can't find the door (thanks joe walsh)?

When a process exits it closes it's fds, so it sends a
Tclunk ...but if the process it sends it to is exiting it can't
respond.   It's in the same position.  Call it "deadly embrace".

Think about it.

I fixed it in Inferno years ago.

Nobody checks the return value of close() - I haven't grepped
around to see if someone does, but Rclunk or Rerror are silly
to wait for, particularly if they aren't gonna happen.

There is no close() in Inferno so the garbage collector is responsible.

The code is in /usr/nferno at the labs.  Maybe glenda needs it.

Opinions?

brucee


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2006-01-06 22:00 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-03 19:28 [9fans] clunk clunk Bruce Ellis
2006-01-03 19:38 ` Sascha Retzki
2006-01-03 19:46 ` Russ Cox
2006-01-03 20:07   ` Bruce Ellis
2006-01-03 20:24     ` Russ Cox
2006-01-03 21:33       ` Bruce Ellis
2006-01-03 21:47         ` jmk
2006-01-03 22:09           ` Bruce Ellis
2006-01-03 22:14             ` jmk
2006-01-03 22:16               ` Bruce Ellis
2006-01-03 22:36             ` Russ Cox
2006-01-03 22:45               ` Bruce Ellis
2006-01-04 12:15                 ` Russ Cox
2006-01-04 12:25                   ` Bruce Ellis
2006-01-04 15:36                     ` Ronald G Minnich
2006-01-04 15:41                       ` Bruce Ellis
2006-01-05  9:36                     ` Francisco J Ballesteros
2006-01-05  9:39                       ` Russ Cox
2006-01-05 12:00                         ` Bruce Ellis
2006-01-05 12:36                           ` Charles Forsyth
2006-01-05 15:26                           ` Francisco J Ballesteros
2006-01-06 21:34                         ` Dave Eckhardt
2006-01-06 21:57                           ` Bruce Ellis
2006-01-06 22:00                           ` Francisco J Ballesteros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).