OS assignment in C using POSIX threads and signals to add two integers and print the result