Re: [Qemu-devel] [PATCH] char-pty: avoid assertion warning

2018-01-25 Thread Marc-Andre Lureau
Hi On Fri, Jan 26, 2018 at 12:40 AM, Peng Hao wrote: > g_source_unref(s->open_source) in pty_chr_timer may trigger a assertion like > this: > g_source_unref: assertion 'source != NULL' failed. > pty_chr_update_read_handler_locked-->pty_chr_state(chr, 0) may be called > in pty_chr_timer, pty_chr_

[Qemu-devel] [PATCH] char-pty: avoid assertion warning

2018-01-25 Thread Peng Hao
g_source_unref(s->open_source) in pty_chr_timer may trigger a assertion like this: g_source_unref: assertion 'source != NULL' failed. pty_chr_update_read_handler_locked-->pty_chr_state(chr, 0) may be called in pty_chr_timer, pty_chr_state(chr, 0) will call g_source_unref(s->open_source) and set s-