Repository navigation
Commit 77e7e6b
gh-159534: Fix race condition in test_sampling_profiler (GH-160028)
Fix test_is_python_process_non_python_subprocess(). Wait until the
forked Python process calls exec() before calling is_python_process().
Previously, is_python_build() returned True if exec() was not called
yet in the forked process.
(cherry picked from commit 6fd15f0)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent ef37746 commit 77e7e6b
1 file changed
Lines changed: 10 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
110 | 95 | | |
111 | 96 | | |
112 | 97 | | |
| |||
634 | 619 | | |
635 | 620 | | |
636 | 621 | | |
637 | | - | |
| 622 | + | |
638 | 623 | | |
639 | 624 | | |
640 | 625 | | |
641 | 626 | | |
642 | 627 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 628 | + | |
648 | 629 | | |
649 | 630 | | |
650 | 631 | | |
| |||
0 commit comments