[BusyBox] frobidden ctrl+c on booting script?

wenwen-unitop wenwen at unitop.com.cn
Sun Nov 18 23:17:17 UTC 2001


hi:
    thanks a lot!
    just run `trap "" 2 3` 
    add signal(SIGINT, handler); is just OK too

----- Original Message ----- 
From: "Erik Andersen" <andersen at codepoet.org>
To: "wenwen-unitop" <wenwen at unitop.com.cn>
Cc: <busybox at opensource.lineo.com>
Sent: Monday, November 19, 2001 11:26 AM
Subject: Re: [BusyBox] frobidden ctrl+c on booting script?


> On Mon Nov 19, 2001 at 10:25:08AM +0800, wenwen-unitop wrote:
> > thanks for your reply, but how can i define ctrl+c?
> > ::ctrlc:/bin/true?
> 
> You need to add some code to whatever application will be running
> on the console to disable ctrl+c for that application.  This is
> most easily done by adding a signal handler to your app,
> something like:
>     signal(SIGINT, handler);
> 
>  -Erik
> 
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--


More information about the busybox mailing list