-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit b91c82d
fix(@angular/build): avoid race condition in sass importer
On slow systems, a race condition can lead to the sass worker thread
being notified to wake up before a message is posted. This causes the
build to be aborted because the searched file is not found.
Waiting twice for a non-zero number in the signal handles this race
correctly, and the second wait should be a noop in the usual case.
Fixes #27167
(cherry picked from commit 5f473af)1 parent 237f7c5 commit b91c82d
1 file changed
+19
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
83 | 102 |
| |
84 | 103 |
| |
85 | 104 |
| |
|
0 commit comments