Skip to main content
Copy-editing (sorry horsey_guy, your edit did change semantics).
Source Link
Stephen Kitt
  • 490.3k
  • 61
  • 1.3k
  • 1.4k

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.

yes i can think of several cases where sys_getppid or syscall number(x86_64 (64-bit): 110 and x86 (32-bit/i386): 64) is significant in child process.like Some cases u might wanna check getppid() to detect parent death and clean up your own resources early before becoming zombie. Rather than waiting to be reaped.Or you may want to make sure some process are start only by specific parents only. or you might wanna send custom signals to the parent.

I can think of several cases where sys_getppid (syscall number 110 on x86_64 and 64 on x86) is significant in child processes. In some cases you might want to check getppid() to detect parent death and clean up your own resources early before becoming a zombie, rather than waiting to be reaped. Or you may want to make sure some processes are started by specific parents only. Or you might want to send custom signals to the parent.

Source Link

yes i can think of several cases where sys_getppid or syscall number(x86_64 (64-bit): 110 and x86 (32-bit/i386): 64) is significant in child process.like Some cases u might wanna check getppid() to detect parent death and clean up your own resources early before becoming zombie. Rather than waiting to be reaped.Or you may want to make sure some process are start only by specific parents only. or you might wanna send custom signals to the parent.