- local @SIG{qw/USR1 USR2/} = mrecv sub { print STDERR "recieved: $_[0]"; exit };
- print STDERR "child wait for data...\n";
+ my $s = mrecv local %SIG, cb => sub {
+ print STDERR "I, the child, recieved this from $_[0]: $_[1]\n";
+ exit
+ };
+ print STDERR "I'm $$ (the child), and I'm waiting for data...\n";