[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] capturing SIGKILL in DomU


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
  • Date: Mon, 4 Oct 2010 14:03:34 -0500
  • Delivery-date: Mon, 04 Oct 2010 12:05:14 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nTNs19F2jCXM3b9w6RDd+qzcm3VLKUn9NAMQJTTNU7dgBjeLDMLi/rvBWc/OlIlQGE QA3WjoULmKmoZCSeLxDNBHdCJmQthmaIj57AlziLsAJ5eZZAo1BympXhXdwa89wODM8i MuK8WL1z45+TdKtHXJ/jij58dLRIz16XY762k=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I am trying to capture SIGKILL through event channel.

On my Dom0, the following process is running (remaining code in attachment).


int main(void){
   
    int ret, dom, remote_dom;
  
    //initialize domains
    dom=0;
    remote_dom=2;
   
    //create the event channel
    ret = create_channel(dom, remote_dom);
   
   
    if (0 == ret) {
        printf("\n Event Channel established successfully \n");
    } else {
        return -1;    //EVENT_CHANNEL_CREATION_FAILED
    }
   
    //wait 20 seconds for an event to occur in DomU
    wait_for_event(20);
   
    //close the opened interfaces
    close_channel();   
      
    return 0;
  
}

While this process is running; I killed a process in DomU using `kill SIGKILL pid`

How can I capture this event (occured in DomU) at the Dom0. I watched /dev/xen/evtchn, but no notification.


--
Srujan D. Kotikela

Attachment: EcTest.c
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.