summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/prompt.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-07-04 22:04:12 +0000
committerbrian <brian@FreeBSD.org>1998-07-04 22:04:12 +0000
commit28a49d6dfdd4cbeeaac8145a05479dc53e29f021 (patch)
tree5396949a0e292b8893d0968115221ddcd4e2eeb9 /usr.sbin/ppp/prompt.c
parent17cce659be653a791e20de5fd2055d7fcdbec86a (diff)
downloadFreeBSD-src-28a49d6dfdd4cbeeaac8145a05479dc53e29f021.zip
FreeBSD-src-28a49d6dfdd4cbeeaac8145a05479dc53e29f021.tar.gz
Don't disable ^D in interactive mode.
Wished for by: pkh
Diffstat (limited to 'usr.sbin/ppp/prompt.c')
-rw-r--r--usr.sbin/ppp/prompt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c
index fdd59fc..af01a0d 100644
--- a/usr.sbin/ppp/prompt.c
+++ b/usr.sbin/ppp/prompt.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: prompt.c,v 1.7 1998/06/16 19:40:40 brian Exp $
+ * $Id: prompt.c,v 1.8 1998/06/24 19:33:35 brian Exp $
*/
#include <sys/param.h>
@@ -68,6 +68,7 @@
#include "chap.h"
#include "datalink.h"
#include "server.h"
+#include "main.h"
static void
prompt_Display(struct prompt *p)
@@ -184,6 +185,8 @@ prompt_Read(struct descriptor *d, struct bundle *bundle, const fd_set *fdset)
command_Decode(bundle, linebuff, n, p, p->src.from);
} else if (n <= 0) {
log_Printf(LogPHASE, "%s: Client connection closed.\n", p->src.from);
+ if (!p->owner)
+ Cleanup(EX_NORMAL);
prompt_Destroy(p, 0);
}
return;
@@ -407,7 +410,6 @@ prompt_TtyInit(struct prompt *p)
newtio.c_lflag &= ~(ECHO | ISIG | ICANON);
newtio.c_iflag = 0;
newtio.c_oflag &= ~OPOST;
- newtio.c_cc[VEOF] = _POSIX_VDISABLE;
if (!p)
newtio.c_cc[VINTR] = _POSIX_VDISABLE;
newtio.c_cc[VMIN] = 1;
OpenPOWER on IntegriCloud