- or download this
use threads;
$| ++;
...
eval(threads->self->join);#Waiting for Godot
print "before return\n";#will not show up
}
- or download this
use threads;
$| ++;
...
}
print "child thread stop\n";
}
- or download this
$| ++;
if (($chld = fork()) == 0) {
...
waitpid $chld, 0;
print "parent exit\n";
}
- or download this
$| ++;
waitpid $$, 0; #wait for Godot
print "exit\n";