Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22167

Command clear won't take kill signal ( in infinite loop | c program )

$
0
0

I used the command "clear" in C language at infinite loop just for test and the kill signal does not stop it.

Why the program does not stop when i press Ctrl+C ?

#include <stdlib.h>int main () {    while (1) {        system("clear");    }    return 0;}

Viewing all articles
Browse latest Browse all 22167


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>