lkml.org 
[lkml]   [2017]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectConserve /proc/$pid after a process exit
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

\
 
 \ /
  Last update: 2017-07-24 16:11    [W:1.038 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site