Hello Kir,<br><br>I have tried the code in this link for checking:<br><a href="http://www.suse.de/~krahmer/exec-notify.c">http://www.suse.de/~krahmer/exec-notify.c</a><br><br>I know why you cannot see the information related<br>
to the processes running in the container when you run this<br>program outside the container(or on the host machine). But I have<br>not yet figured out why you cannot get the process related<br>events when you run the program(mentioned in the link)<br>
inside the container.<br><br>Thanks a lot !!<br><br>Warm Regards,<br>Surbhi.<br><br><br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 3:07 PM, Kir Kolyshkin <span dir="ltr">&lt;<a href="mailto:kir@openvz.org">kir@openvz.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It will probably help if you&#39;ll show us your code.<br>
<br>
Surbhi Chitre wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi again,<br>
<br>
I forgot to mention that I am using the following linux version:<br>
2.6.27.21 downloaded from the OpenVZ website with the last<br>
commit : acfd6c89981b9de80b96741380780ffe6c87a15d<br>
as per the git log.<br>
<br>
When I run the user space version of the kernel connector<br>
from outside the container, then the information of the processes<br>
running in the container cannot be seen (but the other processes<br>
related information can be seen !) When I run the same program<br>
inside a container I cannot send the message to the kernel<br>
connector because of &quot;Connection refused&quot; error (As mentioned earlier) !!<br>
<br>
Do let me know if I am missing any patch ? Any tip or<br>
help will be very helpful to me and shall be hugely appreciated :)<br>
Thanks a lot !<br>
<br>
<br>
Warm Regards,<br>
Surbhi.<br>
<br>
<br>
<br>
<br>
<br>
<br></div><div class="im">
On Tue, Aug 25, 2009 at 7:50 PM, Surbhi Chitre &lt;<a href="mailto:csurbhi@gmail.com" target="_blank">csurbhi@gmail.com</a> &lt;mailto:<a href="mailto:csurbhi@gmail.com" target="_blank">csurbhi@gmail.com</a>&gt;&gt; wrote:<br>

<br>
    Hie,<br>
<br>
    I want to find out all the processes belonging to a particular<br>
    process group. To find this out I am using the kernel connector<br>
    provided by the Linux kernel. I have written a socket based user<br>
    space program that leverages the information provided by the<br>
    kernel connector.<br>
<br>
    This program works successfully when it executes outside any<br>
    container. However when I run it inside a container,<br>
    send() fails because of the following error:<br>
    &quot;Connection refused&quot;.<br>
<br>
    Running this connector code outside<br>
    the container will not fetch the information of the processes<br>
    executing inside a container.<br>
<br>
    Has anyone else tried using the process related events given<br>
    by the kernel connector from a container ? Does this work ?<br>
    Is their any other way of finding out the processes of a group ?<br>
    (or all the children/grandchildren.. of a process running in a<br>
    container ?)<br>
<br>
    Thanks a lot!<br>
<br>
    Warm Regards,<br>
    Surbhi.<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a><br>
</blockquote></div><br>