ipc/ipdl/test/cxx/PTestCrashCleanup.ipdl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial