Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Matt Mackall
On Wed, Jun 06, 2007 at 10:07:46AM +1000, Rusty Russell wrote: > On Tue, 2007-06-05 at 10:34 -0500, Matt Mackall wrote: > > On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: > > > We currently use a "waker" process: a child of the launcher which > > > selects() on the incoming file

Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Rusty Russell
On Tue, 2007-06-05 at 10:34 -0500, Matt Mackall wrote: > On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: > > We currently use a "waker" process: a child of the launcher which > > selects() on the incoming file descriptors. It sends a SIGUSR1 to the > > launcher whenever select()

Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Matt Mackall
On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: > We currently use a "waker" process: a child of the launcher which > selects() on the incoming file descriptors. It sends a SIGUSR1 to the > launcher whenever select() returns to kick the launcher out of the > kernel. If I break out

[PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Rusty Russell
We currently use a "waker" process: a child of the launcher which selects() on the incoming file descriptors. It sends a SIGUSR1 to the launcher whenever select() returns to kick the launcher out of the kernel. This has nasty side-effects: the waker needs to keep sending signals to avoid the

[PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Rusty Russell
We currently use a waker process: a child of the launcher which selects() on the incoming file descriptors. It sends a SIGUSR1 to the launcher whenever select() returns to kick the launcher out of the kernel. This has nasty side-effects: the waker needs to keep sending signals to avoid the race,

Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Matt Mackall
On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: We currently use a waker process: a child of the launcher which selects() on the incoming file descriptors. It sends a SIGUSR1 to the launcher whenever select() returns to kick the launcher out of the kernel. If I break out of

Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Rusty Russell
On Tue, 2007-06-05 at 10:34 -0500, Matt Mackall wrote: On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: We currently use a waker process: a child of the launcher which selects() on the incoming file descriptors. It sends a SIGUSR1 to the launcher whenever select() returns to

Re: [PATCH 4/6] lguest don't signal like crazy, use LHREQ_BREAK command

2007-06-05 Thread Matt Mackall
On Wed, Jun 06, 2007 at 10:07:46AM +1000, Rusty Russell wrote: On Tue, 2007-06-05 at 10:34 -0500, Matt Mackall wrote: On Wed, Jun 06, 2007 at 01:00:06AM +1000, Rusty Russell wrote: We currently use a waker process: a child of the launcher which selects() on the incoming file descriptors.