9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9front sleep interrupted in kproc?
@ 2013-12-30 17:43 erik quanstrom
  2013-12-31  1:06 ` Anthony Martin
  0 siblings, 1 reply; 7+ messages in thread
From: erik quanstrom @ 2013-12-30 17:43 UTC (permalink / raw)
  To: 9fans

not sure where to send this comment.

i think this patch misunderstands the situation.  the patch
claims that some code is wrong because sleep in a kproc might
get interrupted.

	http://code.google.com/p/plan9front/source/detail?r=3864ff1fe83f254622e6f10925f53df62255336d

this diff highlights the issue

	http://code.google.com/p/plan9front/source/diff?spec=svn3864ff1fe83f254622e6f10925f53df62255336d&r=3864ff1fe83f254622e6f10925f53df62255336d&format=side&path=/sys/src/9/port/alarm.c

the crux of the matter is when sleep might be interrupted.  sleep
is interrupted iff process received a note.

since kprocs don't get notes (it's an error to write to the note file),
sleep in a kproc can't get interrupted.  this code will never fire.

- erik



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

end of thread, other threads:[~2013-12-31 14:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30 17:43 [9fans] 9front sleep interrupted in kproc? erik quanstrom
2013-12-31  1:06 ` Anthony Martin
2013-12-31  1:24   ` Anthony Martin
2013-12-31  4:40     ` erik quanstrom
2013-12-31 13:17       ` cinap_lenrek
2013-12-31 14:38         ` erik quanstrom
2013-12-31 10:55     ` Charles Forsyth

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).