Re: [Qemu-devel] [PATCH] net: complete NetSocketState lifecycle handling

2012-06-12 Thread Zhi Yong Wu
On Tue, Jun 12, 2012 at 10:04 PM, Stefan Hajnoczi wrote: > The NetSocketState struct contains two file descriptors: an active > connection and a listen socket for new connections.  It's important that > we clean up after ourselves so these file descriptors are initialized to > -1 when unused.  Thi

[Qemu-devel] [PATCH] net: complete NetSocketState lifecycle handling

2012-06-12 Thread Stefan Hajnoczi
The NetSocketState struct contains two file descriptors: an active connection and a listen socket for new connections. It's important that we clean up after ourselves so these file descriptors are initialized to -1 when unused. This allows makes it possible to call cleanup functions only when the