[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to handle CTRL+C
From: Waldo Bastian <bastian () kde ! org>
Date: 2001-07-27 14:36:24
[Download RAW message or body]
Oh.. now I see.. you need to use "kill(...)" to send the signal.
"signal(...)" is for setting up a handler in case your program receives such
a signal.
Cheers,
Waldo
On Friday 27 July 2001 12:04 am, Knotek Vlastimil wrote:
> I've tried following:
>
> h1 = (void (*)(int)) signal(SIGQUIT, &handler);
> h2 = (void (*)(int)) signal(SIGABRT, &handler);
> h3 = (void (*)(int)) signal(SIGTERM, &handler);
> h3 = (void (*)(int)) signal(SIGTSTP, &handler);
>
> But it does not work. Anything.
>
> Vlasto
>
>
> -----Original Message-----
> From: Waldo Bastian [mailto:bastian@kde.org]
> Sent: Thursday, July 26, 2001 6:06 PM
> To: kde-devel@kde.org
> Subject: Re: How to handle CTRL+C
>
> On Thursday 26 July 2001 07:54 am, Knotek Vlastimil wrote:
> > I need to kill processes, I start, before exiting my program.
> > I've tried signal(SIGINT, ...), but it doesn't work. It generate
>
> 'core'
>
> > file.
> > I was searching in core file, and I've found message 'signal not
> > implemented'.
>
> Try SIGTERM.
>
> Cheers,
> Waldo
--
Andrei Sakharov, Exiled 1980-1986, USSR, http://www.aip.org/history/sakharov/
Dmitry Sklyarov, Detained 2001-????, USA, http://www.elcomsoft.com/
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic