changed print_signal to make a single fputs instead of many putchar's