ctrl-c not working

Mathieu Dube mdube at 8d.com
Fri Mar 8 08:30:27 PST 2002


Hi,
	Im building a very minimal distro and everything is running fine now except 
that when I ctrl-c the application doesnt get the signal.
	I wrote this to test it and it just hangs there:
#include <signal.h>
#include <stdio.h>

void sighandler(int sigid){
        printf("got signal\n");
        exit(0);
}

int main(){
        signal(SIGINT,&sighandler);

        puts("waiting for signal");
        for(;;);

        return 0;
}

What could be the problem??

Thanks
-Mat
-- 
Mathieu Dube -- mdube at 8d.com
8D Technologies Inc.
http://www.8d.com
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list