[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] frobidden ctrl+c on booting script?
From: "wenwen-unitop" <wenwen () unitop ! com ! cn>
Date: 2001-11-18 23:17:17
[Download RAW message or body]
hi:
thanks a lot!
just run `trap "" 2 3`
add signal(SIGINT, handler); is just OK too
----- Original Message -----
From: "Erik Andersen" <andersen@codepoet.org>
To: "wenwen-unitop" <wenwen@unitop.com.cn>
Cc: <busybox@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--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic