Date: Wed, 19 Sep 2001 18:32:29 -0700 From: Julian Elischer <julian@elischer.org> To: John Baldwin <jhb@FreeBSD.org> Cc: julian@FreeBSD.org, arch@FreeBSD.org Subject: Re: sigsuspend() and KSE Message-ID: <3BA9472D.9141CE0A@elischer.org> References: <XFMail.010919161625.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote: > > >From the KSE commit the following was added regarding sigsuspend: > > /* > * Suspend process until signal, providing mask to be set > * in the meantime. Note nonstandard calling convention: > * libc stub passes mask, not pointer, to save a copyin. > ***** XXXKSE this doesn't make sense under KSE. > ***** Do we suspend the thread or all threads in the process? > ***** How do we suspend threads running NOW on another processor? > */ > > Here's my opinion: > > sigsuspend() just suspends the current thread. When a signal is posted, it > wakes up all threads blocked on sigsuspend whose mask matches that signal. I > can see it still making sense, but perhaps being of limited usefulness in a > threaded program. > > -- > > John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ oops ignore previous mail... got sigsuspend mixed up in my mind with SIGTSTOP :-/ -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA9472D.9141CE0A>