0
$ ps
UID        PID  PPID  C STIME TTY          TIME CMD
il       17626     1  0 14:02 ?        00:00:00 /bin/bash /usr/bin/xdg-open file:///media/distrpart/Downloads/utorrent/test.png

I want to know who launched xdg-open, but the parent is dead. Is there a way to not let processes die for a certain timeout?

Tom O'Connor
  • 27,480
  • 10
  • 73
  • 148
basin
  • 558
  • 1
  • 5
  • 22

1 Answers1

1

Unfortunately that's not possible. You would have to change (as in, programming) libc and init and you would break one of the fundamental rules in the unix process model, likely breaking many applications.

In short: don't do it :)

Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70