On Fri, Sep 12, 2014 at 01:18:26PM +0200, Jiri Olsa wrote: > Currently we return POLLHUP in event polling if the monitored > process is done, but we didn't consider possible children, > that might be still running and producing data. > > Before returning POLLHUP making sure that > 1) the monitored task has exited and that > 2) we don't have any children to monitor > > Also adding parent wakeup when the child event is gone. > > Suggested-by: Peter Zijlstra <a.p.zijls...@chello.nl> > Cc: Arnaldo Carvalho de Melo <a...@redhat.com> > Cc: Frederic Weisbecker <fweis...@gmail.com> > Cc: Ingo Molnar <mi...@kernel.org> > Cc: Paul Mackerras <pau...@samba.org> > Cc: Peter Zijlstra <a.p.zijls...@chello.nl> > Cc: Stephane Eranian <eran...@google.com> > Signed-off-by: Jiri Olsa <jo...@kernel.org> > ---
Thanks Jiri (for all three patches)! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/