Re: [Qemu-devel] [PATCH v3] trace/simple: fix hang in child after fork(2)

2018-07-23 Thread Stefan Hajnoczi
On Tue, Jul 17, 2018 at 11:19:44AM +0100, Stefan Hajnoczi wrote: > The simple trace backend spawns a write-out thread which is used to > asynchronously flush the in-memory ring buffer to disk. > > fork(2) does not clone all threads, only the thread that invoked > fork(2). As a result there is no

Re: [Qemu-devel] [PATCH v3] trace/simple: fix hang in child after fork(2)

2018-07-17 Thread Cornelia Huck
On Tue, 17 Jul 2018 11:19:44 +0100 Stefan Hajnoczi wrote: > The simple trace backend spawns a write-out thread which is used to > asynchronously flush the in-memory ring buffer to disk. > > fork(2) does not clone all threads, only the thread that invoked > fork(2). As a result there is no write

[Qemu-devel] [PATCH v3] trace/simple: fix hang in child after fork(2)

2018-07-17 Thread Stefan Hajnoczi
The simple trace backend spawns a write-out thread which is used to asynchronously flush the in-memory ring buffer to disk. fork(2) does not clone all threads, only the thread that invoked fork(2). As a result there is no write-out thread in the child process! This causes a hang during shutdown