UNIX Signal miss-treated for communication suddenly receives from pid 0
So i am doing a test setup where i use UNIX-Signals as communication.
The fallowing code is using SIGUSR1 and SIGUSR2 to transfer a string from from a client process to a server process that will listen for incoming signals. I know this is not how signals should be used and i kindly ask you to disregard any “that function is not signal-save”, because in this test setup the client will wait for the server to acknowledge each received bit via a signal back to the client which will in turn as answer to that signal send the next bit to the server.
This way no signal should interrupt while a signal is being handled. Or so i think at least… i am not sure on anything right now anymore…