author | blanchet |
Thu, 26 Aug 2010 09:03:18 +0200 | |
changeset 38750 | e752ce159903 |
parent 29145 | b1c6f4563df7 |
child 39580 | 05daab5782f6 |
permissions | -rw-r--r-- |
# # Author: Markus Wenzel, TU Muenchen # # feeder.pl - feed isabelle session # # args ($head, $emitpid, $quit, $tail) = @ARGV; # setup signal handlers sub hangup { exit(0); } $SIG{'HUP'} = "hangup"; $SIG{'INT'} = "IGNORE"; # main #buffer lines $| = 1; $emitpid && (print $$, "\n"); $head && (print "$head", "\n"); if (!$quit) { while (<STDIN>) { print; } } $tail && (print "$tail", "\n"); # wait forever close STDOUT; sleep;