ipc/ipdl/test/cxx/PTestCrashCleanup.ipdl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 // See bug 538586: if the top-level protocol's actor is deleted before
     2 // the "connection error" notification comes in from the IO thread,
     3 // IPDL teardown never occurs, even if Channel::Close() is called
     4 // after the error.
     6 namespace mozilla {
     7 namespace _ipdltest {
     9 // NB: needs to be RPC so that the parent blocks on the child's crash.
    10 intr protocol PTestCrashCleanup {
    11 child:
    12     intr DIEDIEDIE();
    13     __delete__();
    15 state ALIVE:
    16     call DIEDIEDIE goto CRASH;
    17 state CRASH:
    18     send __delete__;
    19 };
    21 }
    22 }

mercurial