Re: Programming hints.

1998-03-24 Thread Oliver Elphick
"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

Re: Programming hints.

1998-03-24 Thread C.J.LAWSON
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

Re: Programming hints.

1998-03-23 Thread shaul
> 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]

Re: Programming hints.

1998-03-23 Thread Sen Nagata
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

Re: Programming hints.

1998-03-22 Thread Mats Rynge
(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

Re: Programming hints.

1998-03-21 Thread shaul
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.)

Re: Programming hints.

1998-03-21 Thread aqy6633
> 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

Re: Programming hints.

1998-03-21 Thread Alex Romosan
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

Re: Programming hints.

1998-03-20 Thread Shaleh
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

Programming hints.

1998-03-20 Thread Helmut Metzdorf
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