Commit 1833b64
perf daemon: Force waipid for all session on SIGCHLD delivery
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 fix close condition for signal_fd.
Reported-by: Ian Rogers <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>1 parent 1a096ae commit 1833b64
1 file changed
+28
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
405 | 411 | | |
406 | | - | |
| 412 | + | |
| 413 | + | |
407 | 414 | | |
| 415 | + | |
408 | 416 | | |
409 | 417 | | |
| 418 | + | |
| 419 | + | |
410 | 420 | | |
411 | | - | |
| 421 | + | |
| 422 | + | |
412 | 423 | | |
413 | 424 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
429 | 437 | | |
430 | 438 | | |
431 | 439 | | |
432 | 440 | | |
433 | | - | |
434 | 441 | | |
435 | 442 | | |
436 | 443 | | |
| |||
443 | 450 | | |
444 | 451 | | |
445 | 452 | | |
446 | | - | |
447 | 453 | | |
448 | 454 | | |
449 | 455 | | |
| |||
452 | 458 | | |
453 | 459 | | |
454 | 460 | | |
455 | | - | |
| 461 | + | |
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
459 | 465 | | |
460 | 466 | | |
461 | 467 | | |
462 | 468 | | |
463 | | - | |
| 469 | + | |
464 | 470 | | |
465 | 471 | | |
466 | 472 | | |
| |||
1344 | 1350 | | |
1345 | 1351 | | |
1346 | 1352 | | |
1347 | | - | |
| 1353 | + | |
1348 | 1354 | | |
1349 | 1355 | | |
1350 | 1356 | | |
| |||
0 commit comments