Mercurial > hg > octave-nkf
diff src/sighandlers.cc @ 2206:9be05ffc288a
[project @ 1996-05-15 07:32:58 by jwe]
author | jwe |
---|---|
date | Wed, 15 May 1996 07:35:42 +0000 |
parents | 680ce730f0c6 |
children | 859030f15706 |
line wrap: on
line diff
--- a/src/sighandlers.cc +++ b/src/sighandlers.cc @@ -157,15 +157,11 @@ { octave_pager_pid = -1; - // XXX FIXME XXX -- I'm not sure that this is the right - // thing to do here, but it seems to work. + // Don't call error() here because we don't want to set + // the error state. - // Don't call error() here because that tries to flush - // pending output, which isn't going to do anything - // anyway. - - cerr << "error: connection to external pager lost --\n"; - cerr << "error: pending computations and output have been discarded\n"; + warning ("connection to external pager lost --"); + warning ("pending computations and output have been discarded"); } } } @@ -228,7 +224,7 @@ octave_set_signal_handler (SIGPIPE, sigpipe_handler); if (pipe_handler_error_count++ == 0) - message (0, "broken pipe"); + warning ("broken pipe"); // Don't loop forever on account of this.