Fix how keywords are picked up.
[nvi.git] / perl_scripts / tk.pl
blobf8d1bc068df3d3a4b52c82d0610b918a401f8bb8
1 # make sure every subprocess has it's exit and that the main one
2 # hasn't
3 sub fun {
4 unless ($pid = fork) {
5 unless (fork) {
6 use Tk;
7 $MW = MainWindow->new;
8 $hello = $MW->Button(
9 -text => 'Hello, world',
10 -command => sub {exit;},
12 $hello->pack;
13 MainLoop;
15 exit 0;
17 waitpid($pid, 0);