Like the title says, I can only force exit by using Ctrl-C/Z.
I get stuck in a never ending fgets() do-while loop
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int loop = 1;
char line[255];
printf("Running, enter a line: \n");
do {
fgets(line, sizeof(line), stdin);
if (strcmp("exit", line) == 0){
loop = 0;
}
printf("%s", line);
} while(loop == 1);
printf("\nNever displays...\n");
return 0;
}