Mercurial > hg > octave-nkf
diff src/sighandlers.cc @ 1358:dc9c01f66a19
[project @ 1995-09-05 21:10:01 by jwe]
author | jwe |
---|---|
date | Tue, 05 Sep 1995 21:12:04 +0000 |
parents | 19c10b8657d5 |
children | cea4101a2f18 |
line wrap: on
line diff
--- a/src/sighandlers.cc +++ b/src/sighandlers.cc @@ -125,8 +125,8 @@ static RETSIGTYPE sigint_handler (int i) { -// Can this ever cause trouble on systems that don't forget signal -// handlers when they are invoked? + // Can this ever cause trouble on systems that don't forget signal + // handlers when they are invoked? signal (SIGINT, sigint_handler); @@ -146,15 +146,16 @@ static RETSIGTYPE sigpipe_handler (int i) { -// Can this ever cause trouble on systems that don't forget signal -// handlers when they are invoked? + // Can this ever cause trouble on systems that don't forget signal + // handlers when they are invoked? signal (SIGPIPE, sigpipe_handler); if (pipe_handler_error_count++ == 0) message (0, "broken pipe"); -// Don\'t loop forever on account of this. + // Don't loop forever on account of this. + if (pipe_handler_error_count > 100) jump_to_top_level ();