projects
/
ppp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
713f439
)
don't recurse in terminate()
author
Paul Mackerras
<paulus@samba.org>
Wed, 31 Mar 1999 12:28:16 +0000
(12:28 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 31 Mar 1999 12:28:16 +0000
(12:28 +0000)
chat/chat.c
patch
|
blob
|
history
diff --git
a/chat/chat.c
b/chat/chat.c
index 409285666644e8cecef28e677a66d46e47de61b7..5ce1336e381329afb811bb71e209efd840ade535 100644
(file)
--- a/
chat/chat.c
+++ b/
chat/chat.c
@@
-78,7
+78,7
@@
*/
#ifndef lint
-static char rcsid[] = "$Id: chat.c,v 1.
19 1998/03/24 23:57:48
paulus Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.
20 1999/03/31 12:28:16
paulus Exp $";
#endif
#include <stdio.h>
@@
-606,6
+606,11
@@
void break_sequence()
void terminate(status)
int status;
{
+ static int terminating = 0;
+
+ if (terminating)
+ exit(status);
+ terminating = 1;
echo_stderr(-1);
if (report_file != (char *) 0 && report_fp != (FILE *) NULL) {
/*