in reply to Re^5: Threads, bash, and networking
in thread Threads, bash, and networking

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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy