https://stackoverflow.com/questions/6970224/providing-passing-argument-to-signal-handler This is a really old question but I think I can show you a nice trick that would have answered your problem. No need to use sigqueue or whatever. I also dislike…