Jan Markus wrote: >#include <stdio.h> >#include <signal.h> > >void clean_exit(int i) { > printf("heeeelp! murdeeeer! \n"); > return EOF; > fflush(stdout); > _exit(0); > /* a tak podobne */ >} > >int main(void) { > [...] > signal(SIGINT, clean_exit); >} > > Zkuste to prehodit, nejdriv nastavit signal handler a teprve potom delat, co je potreba. Libor