Deleted Added
full compact
main.c (36709) main.c (37007)
1/*
2 * User Process PPP
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
1/*
2 * User Process PPP
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * $Id: main.c,v 1.129 1998/05/29 18:33:09 brian Exp $
20 * $Id: main.c,v 1.130 1998/06/06 20:50:57 brian Exp $
21 *
22 * TODO:
23 */
24
25#include <sys/types.h>
26#include <sys/socket.h>
27#include <netinet/in.h>
28#include <netinet/in_systm.h>

--- 56 unchanged lines hidden (view full) ---

85static struct bundle *SignalBundle;
86static struct prompt *SignalPrompt;
87
88void
89Cleanup(int excode)
90{
91 SignalBundle->CleaningUp = 1;
92 if (bundle_Phase(SignalBundle) != PHASE_DEAD)
21 *
22 * TODO:
23 */
24
25#include <sys/types.h>
26#include <sys/socket.h>
27#include <netinet/in.h>
28#include <netinet/in_systm.h>

--- 56 unchanged lines hidden (view full) ---

85static struct bundle *SignalBundle;
86static struct prompt *SignalPrompt;
87
88void
89Cleanup(int excode)
90{
91 SignalBundle->CleaningUp = 1;
92 if (bundle_Phase(SignalBundle) != PHASE_DEAD)
93 bundle_Close(SignalBundle, NULL, 1);
93 bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
94}
95
96void
97AbortProgram(int excode)
98{
99 server_Close(SignalBundle);
100 log_Printf(LogPHASE, "PPP Terminated (%s).\n", ex_desc(excode));
94}
95
96void
97AbortProgram(int excode)
98{
99 server_Close(SignalBundle);
100 log_Printf(LogPHASE, "PPP Terminated (%s).\n", ex_desc(excode));
101 bundle_Close(SignalBundle, NULL, 1);
101 bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
102 bundle_Destroy(SignalBundle);
103 log_Close();
104 exit(excode);
105}
106
107static void
108CloseConnection(int signo)
109{

--- 419 unchanged lines hidden ---
102 bundle_Destroy(SignalBundle);
103 log_Close();
104 exit(excode);
105}
106
107static void
108CloseConnection(int signo)
109{

--- 419 unchanged lines hidden ---