Commit ec1ba65
authored
Avoid taskstats_exit and sched_process_exit (#232)
taskstats_exit can be compiled out based on kernel configuration.
Instead use disassociate_ctty(1) (CONFIG_TTY, hopefully less likely
to be compiled out) as an indication that group_dead has been set.
sched_process_exit is called before exit_files, so it's
possible that a socket disconnect event could be emitted after
a process termination. And, disassociate_ctty is called after.
Remove group_dead tracking.1 parent 497c829 commit ec1ba65
File tree
3 files changed
+20
-26
lines changed- GPL/Events
- Process
- non-GPL/Events/Lib
3 files changed
+20
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
212 | 207 | | |
| 208 | + | |
213 | 209 | | |
214 | 210 | | |
215 | | - | |
| 211 | + | |
216 | 212 | | |
217 | 213 | | |
218 | 214 | | |
| |||
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
250 | | - | |
251 | | - | |
| 246 | + | |
| 247 | + | |
252 | 248 | | |
253 | | - | |
| 249 | + | |
254 | 250 | | |
255 | 251 | | |
256 | | - | |
257 | | - | |
| 252 | + | |
| 253 | + | |
258 | 254 | | |
259 | | - | |
| 255 | + | |
260 | 256 | | |
261 | 257 | | |
262 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| |||
0 commit comments