Re: [fpc-pascal] Suppressing ^C signal from stdin

2014-01-02 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Wed, January 1, 2014 20:48, Mark Morgan Lloyd wrote: When reading characters from a program's stdin using fpRead(), what's the best way of suppressing ^C so that it doesn't raise SIGTERM or whatever? I want to be able to handle signals indicating e.g. a UPS power-failure me

Re: [fpc-pascal] Suppressing ^C signal from stdin

2014-01-01 Thread Tomas Hajny
On Wed, January 1, 2014 20:48, Mark Morgan Lloyd wrote: > When reading characters from a program's stdin using fpRead(), what's > the best way of suppressing ^C so that it doesn't raise SIGTERM or > whatever? I want to be able to handle signals indicating e.g. a UPS > power-failure message, but not

Re: [fpc-pascal] Suppressing ^C signal from stdin

2014-01-01 Thread Mark Morgan Lloyd
Sven Barth wrote: On 01.01.2014 20:48, Mark Morgan Lloyd wrote: When reading characters from a program's stdin using fpRead(), what's the best way of suppressing ^C so that it doesn't raise SIGTERM or whatever? I want to be able to handle signals indicating e.g. a UPS power-failure message, but

Re: [fpc-pascal] Suppressing ^C signal from stdin

2014-01-01 Thread Sven Barth
On 01.01.2014 20:48, Mark Morgan Lloyd wrote: When reading characters from a program's stdin using fpRead(), what's the best way of suppressing ^C so that it doesn't raise SIGTERM or whatever? I want to be able to handle signals indicating e.g. a UPS power-failure message, but not to get trivial