Re: [PATCH 1/2] perf daemon: Force waipid for all session on SIGCHLD delivery

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Sat, Mar 20, 2021 at 11:10:12PM +0100, Jiri Olsa escreveu: > If we don't process SIGCHLD before another comes, we will > see just one SIGCHLD as a result. In this case current code > will miss exit notification for a session and wait forever. > > Adding extra waitpid check for all sessions when

[PATCH 1/2] perf daemon: Force waipid for all session on SIGCHLD delivery

2021-03-20 Thread Jiri Olsa
If we don't process SIGCHLD before another comes, we will see just one SIGCHLD as a result. In this case current code will miss exit notification for a session and wait forever. Adding extra waitpid check for all sessions when SIGCHLD is received, to make sure we don't miss any session exit. Also