Commit 23b0270
committed
Avoid taskstats_exit and sched_process_exit
taskstats_exit can be compiled out based on kernel configuration.
Instead use disassociate_ctty(1) 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. instead use exit_task_namespaces to emit the
exit event. we had little choice in the matter since sched_process_exit
is executed before disassociate_ctty, but sched_process_exit was still
the incorrect spot to emit an exit event and worth noting.1 parent 497c829 commit 23b0270
2 files changed
Lines changed: 36 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
| 210 | + | |
201 | 211 | | |
202 | | - | |
| 212 | + | |
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
208 | 218 | | |
209 | 219 | | |
210 | | - | |
211 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
212 | 233 | | |
213 | 234 | | |
214 | 235 | | |
| |||
247 | 268 | | |
248 | 269 | | |
249 | 270 | | |
250 | | - | |
251 | | - | |
| 271 | + | |
| 272 | + | |
252 | 273 | | |
253 | | - | |
| 274 | + | |
254 | 275 | | |
255 | 276 | | |
256 | | - | |
257 | | - | |
| 277 | + | |
| 278 | + | |
258 | 279 | | |
259 | | - | |
| 280 | + | |
260 | 281 | | |
261 | 282 | | |
262 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| |||
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
406 | | - | |
| 407 | + | |
| 408 | + | |
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
| |||
473 | 475 | | |
474 | 476 | | |
475 | 477 | | |
476 | | - | |
| 478 | + | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
| |||
0 commit comments