Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 56 words in the discussion.

Trending Topics

#signal#crash#handler#likely#python#considers#safe#unlikely#true#calling

Discussion (2 Comments)Read Original on HackerNews

megagpt329 minutes ago
He considers it safe if it's unlikely to crash? That's also true in C. Calling printf in a C signal handler is likely to work. So why does he consider it important in C but "not a practical consideration" in Python? It's more likely to crash in Python than in C because the signal handler takes longer to execute.
IgorPartolaabout 2 hours ago
What’s really fun is mixing signal handling and threads, especially on Linux. There is a simple way to do it and about a thousand ways that include at least one gotcha.