Mercurial > hg > octave-lyh
comparison src/sighandlers.cc @ 529:7ea224e713cd
[project @ 1994-07-20 18:54:27 by jwe]
author | jwe |
---|---|
date | Wed, 20 Jul 1994 19:19:08 +0000 |
parents | a99f28f5e351 |
children | 5338832d2cf6 |
comparison
equal
deleted
inserted
replaced
528:e1e6e33e26f8 | 529:7ea224e713cd |
---|---|
1 // sighandlers.cc -*- C++ -*- | 1 // sighandlers.cc -*- C++ -*- |
2 /* | 2 /* |
3 | 3 |
4 Copyright (C) 1992, 1993 John W. Eaton | 4 Copyright (C) 1992, 1993, 1994 John W. Eaton |
5 | 5 |
6 This file is part of Octave. | 6 This file is part of Octave. |
7 | 7 |
8 Octave is free software; you can redistribute it and/or modify it | 8 Octave is free software; you can redistribute it and/or modify it |
9 under the terms of the GNU General Public License as published by the | 9 under the terms of the GNU General Public License as published by the |
125 | 125 |
126 static RETSIGTYPE | 126 static RETSIGTYPE |
127 sigpipe_handler (int i) | 127 sigpipe_handler (int i) |
128 { | 128 { |
129 if (pipe_handler_error_count++ == 0) | 129 if (pipe_handler_error_count++ == 0) |
130 message ((char *) NULL, "broken pipe"); | 130 message (0, "broken pipe"); |
131 | 131 |
132 // Don\'t loop forever on account of this. | 132 // Don\'t loop forever on account of this. |
133 if (pipe_handler_error_count > 100) | 133 if (pipe_handler_error_count > 100) |
134 jump_to_top_level (); | 134 jump_to_top_level (); |
135 | 135 |