home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / Tk / Ghostscript / StopInterp.al < prev   
Encoding:
Text File  |  1997-08-10  |  379 b   |  20 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Ghostscript.pm.  Changes made here will be lost.
  2. package Tk::Ghostscript;
  3.  
  4. sub StopInterp
  5. {
  6.  my $w = shift;
  7.  if (exists $w->{'pid'})
  8.   {
  9.    my $fh = $w->{'FH'};
  10.    kill('TERM',$w->{'pid'});
  11.    delete $w->{'pid'};
  12.    $w->fileevent($fh,'writable',"");
  13.    close($fh);
  14.    delete $w->{'Pending'};
  15.   }
  16.  delete $w->{'mwin'};
  17. }
  18.  
  19. 1;
  20.