When I run your code example, "main:Awooga!" is printed.
Hm. Looks like another *nix/windows difference in implementation. I agree with you, that renders alarm in threads pretty much useless on *nix.
Which is a shame because it is (currently) quite useful on windows. Presumably because all signals are just emulations there.
I also think that in general mixing signals and threads is a bad idea, but I make this one exception for SIGALRM.
In reply to Re^6: Threads, bash, and networking
by BrowserUk
in thread Threads, bash, and networking
by morganda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |