In ubuntu,My code is:
int main(){ printf("signal test"); while(1); return 0; }
and it can'd display: signal test
This is because of buffering, as no newline is printed, nothing is flushed to the output.