Changes added to kernel to print pending signals. Test program modified to sync