Re: How to halt a running program without losing data?



*** Russell wrote:
> ... As a developer, I
> would much prefer to assume this burden myself and distribute an
> executable only, targeted for a particular OS, rather than take the
> "batteries not included" approach.

Me too. Also the ad-hoc approach of polling a data file is not always
reliable, and can carry performance problems.

C programmers have always been able to use a portable signal facility
that is part of the standard library, but Fortran programmers have not
been so lucky.

Once again I will note that the POSIX.9 Standard corrects this deficiency
for Fortran by defining a portable interface to sigaction and friends.

Walt
.


Quantcast