Commit eed4d8c
committed
Child Node processes poll and exit when parent has exited. Fixes aspnet#270
1 parent 1ce8a22 commit eed4d8cCopy full SHA for eed4d8c
File tree
Expand file treeCollapse file tree
6 files changed
+221
-14
lines changedOpen diff view settings
Filter options
- src/Microsoft.AspNetCore.NodeServices
- Content/Node
- HostingModels
- TypeScript
- Util
Expand file treeCollapse file tree
6 files changed
+221
-14
lines changedOpen diff view settings
Collapse file
src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js+69Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
| 61 | + |
61 | 62 | |
62 | 63 | |
63 | 64 | |
| ||
121 | 122 | |
122 | 123 | |
123 | 124 | |
| 125 | + |
124 | 126 | |
125 | 127 | |
126 | 128 | |
| ||
208 | 210 | |
209 | 211 | |
210 | 212 | |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
211 | 280 | |
212 | 281 | |
Collapse file
src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-socket.js
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-socket.js+82-13Lines changed: 82 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
| ||
124 | 124 | |
125 | 125 | |
126 | 126 | |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
127 | 194 | |
128 | 195 | |
129 | 196 | |
130 | 197 | |
131 | 198 | |
132 | 199 | |
133 | | - |
| 200 | + |
134 | 201 | |
135 | | - |
| 202 | + |
136 | 203 | |
137 | | - |
| 204 | + |
| 205 | + |
138 | 206 | |
139 | 207 | |
140 | 208 | |
| ||
189 | 257 | |
190 | 258 | |
191 | 259 | |
| 260 | + |
192 | 261 | |
193 | 262 | |
194 | 263 | |
195 | | - |
| 264 | + |
196 | 265 | |
197 | 266 | |
198 | 267 | |
199 | 268 | |
200 | 269 | |
201 | | - |
| 270 | + |
202 | 271 | |
203 | 272 | |
204 | 273 | |
205 | 274 | |
206 | 275 | |
207 | | - |
| 276 | + |
208 | 277 | |
209 | 278 | |
210 | 279 | |
211 | | - |
212 | | - |
| 280 | + |
| 281 | + |
213 | 282 | |
214 | 283 | |
215 | 284 | |
| ||
390 | 459 | |
391 | 460 | |
392 | 461 | |
393 | | - |
| 462 | + |
394 | 463 | |
395 | 464 | |
396 | 465 | |
397 | 466 | |
398 | 467 | |
399 | | - |
| 468 | + |
400 | 469 | |
401 | 470 | |
402 | 471 | |
| ||
405 | 474 | |
406 | 475 | |
407 | 476 | |
408 | | - |
| 477 | + |
409 | 478 | |
410 | 479 | |
411 | 480 | |
| ||
446 | 515 | |
447 | 516 | |
448 | 517 | |
449 | | - |
| 518 | + |
450 | 519 | |
451 | 520 | |
452 | 521 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
| 117 | + |
117 | 118 | |
118 | 119 | |
119 | | - |
| 120 | + |
120 | 121 | |
121 | 122 | |
122 | 123 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
73 | 74 | |
74 | 75 | |
75 | 76 | |
| 77 | + |
| 78 | + |
76 | 79 | |
77 | 80 | |
78 | 81 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/TypeScript/SocketNodeInstanceEntryPoint.ts
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/TypeScript/SocketNodeInstanceEntryPoint.ts+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| ||
69 | 70 | |
70 | 71 | |
71 | 72 | |
| 73 | + |
| 74 | + |
72 | 75 | |
73 | 76 | |
74 | 77 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/TypeScript/Util/ExitWhenParentExits.ts
Copy file name to clipboard+62Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
0 commit comments