Commit c58fe38
watch: fix --env-file-if-exists crashing on linux if the file is missing
PR-URL: #61870
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>1 parent 3c96ae1 commit c58fe38Copy full SHA for c58fe38
8 files changed
+84-14Lines changed: 84 additions & 14 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
- lib
- internal
- fs
- main
- watch_mode
- test
- parallel
- sequential
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4784 | 4784 | |
4785 | 4785 | |
4786 | 4786 | |
| 4787 | + |
| 4788 | + |
| 4789 | + |
4787 | 4790 | |
4788 | 4791 | |
4789 | 4792 | |
| ||
4812 | 4815 | |
4813 | 4816 | |
4814 | 4817 | |
| 4818 | + |
| 4819 | + |
4815 | 4820 | |
4816 | 4821 | |
4817 | 4822 | |
|
Collapse file
+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2512 | 2512 | |
2513 | 2513 | |
2514 | 2514 | |
| 2515 | + |
2515 | 2516 | |
2516 | 2517 | |
2517 | 2518 | |
| ||
2530 | 2531 | |
2531 | 2532 | |
2532 | 2533 | |
| 2534 | + |
2533 | 2535 | |
2534 | 2536 | |
2535 | 2537 | |
| ||
2547 | 2549 | |
2548 | 2550 | |
2549 | 2551 | |
2550 | | - |
| 2552 | + |
| 2553 | + |
2551 | 2554 | |
2552 | 2555 | |
2553 | 2556 | |
|
Collapse file
lib/internal/fs/recursive_watch.js
Copy file name to clipboardExpand all lines: lib/internal/fs/recursive_watch.js+9-2Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
| 55 | + |
55 | 56 | |
56 | 57 | |
57 | 58 | |
| ||
66 | 67 | |
67 | 68 | |
68 | 69 | |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
69 | 76 | |
70 | 77 | |
71 | 78 | |
| ||
76 | 83 | |
77 | 84 | |
78 | 85 | |
79 | | - |
| 86 | + |
80 | 87 | |
81 | 88 | |
82 | 89 | |
| ||
222 | 229 | |
223 | 230 | |
224 | 231 | |
225 | | - |
| 232 | + |
226 | 233 | |
227 | 234 | |
228 | 235 | |
|
Collapse file
lib/internal/fs/watchers.js
Copy file name to clipboardExpand all lines: lib/internal/fs/watchers.js+7-2Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
| ||
293 | 293 | |
294 | 294 | |
295 | 295 | |
296 | | - |
| 296 | + |
| 297 | + |
297 | 298 | |
298 | 299 | |
299 | 300 | |
| ||
313 | 314 | |
314 | 315 | |
315 | 316 | |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
316 | 321 | |
317 | 322 | |
318 | 323 | |
|
Collapse file
lib/internal/main/watch_mode.js
Copy file name to clipboardExpand all lines: lib/internal/main/watch_mode.js+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
| 37 | + |
| 38 | + |
41 | 39 | |
42 | 40 | |
43 | 41 | |
| ||
105 | 103 | |
106 | 104 | |
107 | 105 | |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
108 | 110 | |
109 | 111 | |
110 | 112 | |
| ||
160 | 162 | |
161 | 163 | |
162 | 164 | |
| 165 | + |
163 | 166 | |
164 | 167 | |
165 | 168 | |
| ||
198 | 201 | |
199 | 202 | |
200 | 203 | |
| 204 | + |
201 | 205 | |
202 | 206 | |
Collapse file
lib/internal/watch_mode/files_watcher.js
Copy file name to clipboardExpand all lines: lib/internal/watch_mode/files_watcher.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
| 117 | + |
| 118 | + |
| 119 | + |
118 | 120 | |
119 | 121 | |
120 | 122 | |
| ||
126 | 128 | |
127 | 129 | |
128 | 130 | |
129 | | - |
| 131 | + |
130 | 132 | |
131 | 133 | |
132 | | - |
| 134 | + |
133 | 135 | |
134 | 136 | |
135 | 137 | |
136 | | - |
| 138 | + |
137 | 139 | |
138 | 140 | |
139 | 141 | |
|
Collapse file
test/parallel/test-fs-watch-enoent.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-watch-enoent.js+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
46 | 69 | |
47 | 70 | |
48 | 71 | |
|
Collapse file
test/sequential/test-watch-mode.mjs
Copy file name to clipboardExpand all lines: test/sequential/test-watch-mode.mjs+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
277 | 277 | |
278 | 278 | |
279 | 279 | |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
280 | 301 | |
281 | 302 | |
282 | 303 | |
|
0 commit comments