yes iI can think of several cases where sys_getppid or syscall number(x86_64 sys_getppid (64-bit):syscall number 110 on x86_64 and x86 (32-bit/i386): 64 on x86) is significant in child processprocesses.like Some In some cases uyou might wannawant to check getppid() togetppid() to detect parent death and clean up your own resources early before becoming a zombie. Rather, rather than waiting to be reaped.Or Or you may want to make sure some processprocesses are start onlystarted by specific parents only.
orOr you might wannawant to send custom signals to the parent.
Stephen Kitt
- 490.3k
- 61
- 1.3k
- 1.4k