Why casting? Why not ```send(sizeof(signum))```? Same goes for recv() elsewhere.