Re: Preferred portable way to talk to a server process
Nelson Bolyard <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
Joachim Ziegler wrote, On 2008-07-22 00:47: > A second question: A typical server process blocks in a PR_Accept(), > waiting for clients to connect. > > The reference page says: "PR_Accept blocks the calling thread until > either a new connection is successfully accepted or an error occurs." > Now suppose that I want to shutdown the server process. How can I do > that? How can I make the process unblock and test a Boolean shutdown > variable? Connect to it, causing the PR_Accept to complete normally without error.