yihong0618 和朋友们的频道 头像

消息来源频道

yihong0618 和朋友们的频道

@hyi0618

频道8,612 位成员公开可见0 人在线

yihong0618 和朋友们的频道

成员规模8,612 位成员
在线情况0 人在线
消息总数10,129 条消息
浏览量总数3,297,173 次浏览

在这个频道里搜索消息……

t.me/hyi0618

更详细的排查过程:
图1:跟踪所有 syscall
图2:ioctl syscall 的 funcgraph
图3:ioctl syscal 的 LBR
图4: tty_ioctl 的 funcgraph
图5: tty_check_change 的 LBR
最后,关键的源代码注释:
exit.c:
318 │ /*
319 │ * Determine if a process group is "orphaned", according to the POSIX
320 │ * definition in 2.2.2.52. Orphaned process groups are not to be affected
321 │ * by terminal-generated stop signals. Newly orphaned process groups are
322 │ * to receive a SIGHUP and a SIGCONT.
323 │ *
324 │ * "I ask you, have you ever known what it is to be an orphan?"
325 │ */
326 │ static int will_become_orphaned_pgrp(struct pid *pgrp,
327 │ struct task_struct *ignored_task)
328 │ {
329 │ struct task_struct *p;
330 │
331 │
......
341 │
342 │ return 1;
343 │ }
#bpfsnoop