in reply to Re: Making sure child process dies with parent on Win32
in thread Making sure child process dies with parent on Win32

Whoops - me bad, there is a better way in Tk - use OnDestroy. Now that I'm back at work I've looked at some of the Tk stuff that I've done and this is what I've used.
$main_window->OnDestroy(sub { kill 15 => $kid; exit; } );
The OnDestroy is a Tk routine, should do the trick. Get rid of the myexit sub and use this, you should be Ok. kill does work - just make sure you are killing the right pid :-)