Redirect stdout of a killed executable
Answer #1 75 %You need to flush stdout before the loop:
#include
int main(void)
{
printf("Hello world\n");
fflush(stdout);
while (1);
return 0;
}
You need to flush stdout before the loop:
#include
int main(void)
{
printf("Hello world\n");
fflush(stdout);
while (1);
return 0;
}