"C.J.LAWSON" wrote:
>
>
>On Mon, 23 Mar 1998 [EMAIL PROTECTED] wrote:
>
>> > What about CTRL + C. Is that a signal?
>>
>> Yes it is. I don't know what signal exactly it is. SIGINT ? SIGTERM ?
Strictly speaking, ctrl-c can be made to generate SIGINT, and this is the
default in Debia
On Mon, 23 Mar 1998 [EMAIL PROTECTED] wrote:
> > What about CTRL + C. Is that a signal?
>
> Yes it is. I don't know what signal exactly it is. SIGINT ? SIGTERM ?
>
> > If not, how can a do something before
> > exiting from CTRL + C?
What you want to do is catch the signal. Typically it will r
> What about CTRL + C. Is that a signal?
Yes it is. I don't know what signal exactly it is. SIGINT ? SIGTERM ?
> If not, how can a do something before
> exiting from CTRL + C?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
at some point around Sun, 22 Mar 1998 12:56:01 -0800
Mats Rynge <[EMAIL PROTECTED]> mentioned:
> What about CTRL + C. Is that a signal? If not, how can a do something
> before exiting from CTRL + C?
IIRC, CTRL + C is often associated w/ a signal, but is not actually
a signal itself. isn't it of
(Alex Yukhimets) wrote:
> > Beeing busy to write a programm I would like to add a routine
> > that forces it to shut down orderly (closing files etc.) when
> > recieving a SIGTERM from the system, because the program itself
> > is doing work that will keep it going for months at least.
> > Can som
1) The original message contained a wrong return adress:
repl: bad addresses:
[EMAIL PROTECTED], [EMAIL PROTECTED] -- no sub-domain in domain-part of
address
(@)
2)
> Beeing busy to write a programm I would like to add a routine
> that forces it to shut down orderly (closing files etc.)
> Beeing busy to write a programm I would like to add a routine
> that forces it to shut down orderly (closing files etc.) when
> recieving a SIGTERM from the system, because the program itself
> is doing work that will keep it going for months at least.
> Can somone tell me of already existing pro
look at the function signal. from the man page:
DESCRIPTION
The signal system call installs a new signal handler for
the signal with number signum. The signal handler is set
to handler which may be a user specified function, or one
of the following:
if you need mo
There is a C routine called "atexit" which I believe is ANSI. You might
check that. That routine is called when the program exits. For sig
catching check out "Unix programming" or something like that by W.
Richard Stevens. Great book.
---
How can you
Beeing busy to write a programm I would like to add a routine
that forces it to shut down orderly (closing files etc.) when
recieving a SIGTERM from the system, because the program itself
is doing work that will keep it going for months at least.
Can somone tell me of already existing programs wher
10 matches
Mail list logo