Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1694757 > unrolled thread

Conserve /proc/$pid after a process exit

Started byYubin Ruan <ablacktshirt@gmail.com>
First post2017-07-24 16:20 +0200
Last post2017-07-24 16:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Conserve /proc/$pid after a process exit Yubin Ruan <ablacktshirt@gmail.com> - 2017-07-24 16:20 +0200

#1694757 — Conserve /proc/$pid after a process exit

FromYubin Ruan <ablacktshirt@gmail.com>
Date2017-07-24 16:20 +0200
SubjectConserve /proc/$pid after a process exit
Message-ID<u6Mnf-61e-5@gated-at.bofh.it>
Does anyone have ideas how to preserve a /proc/$pid directory after a process
exit? I want to perform some audit on some process A from within
another process B. Process B have the pid of process A but after A
exit, B can no longer retrieve
info from /proc/$pid. I am wondering whether it is possible for B to
have a special "handle" of /proc/$pid so that after A exist B can
still read from it.

In my situation, A know nothing of B so A can send no message to B.

Are there any mechanism for this purpose? Locking that dir?

Thanks,
Yubin

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web