News for hackers. Stuff that matters.
Re:Should you be scared of Unix signals? by jasonzemos on Monday June 13, 2016 @11:19PM (#11899523)
Sure, and then the handler only sees one integer as updated and the other integer will be updated after the handler. The lock gets silently broken unfortunately, but there's probably a useful reason for why this is. It could just deadlock instead.
Re:Should you be scared of Unix signals? by gpderetta on Tuesday June 14, 2016 @04:41AM (#11900651)
Deadlocking would be the ideal outcome. Deadlocks are easy to debug. Silent concurrent memory corruptions not so much.
Re:Should you be scared of Unix signals? by 0x0 on Monday June 13, 2016 @11:56PM (#11899655)
Well that's just plain broken.