From 3619bf1052dea54f43cb5c1093d81628e967c1a1 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sun, 20 Dec 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-12-20 --- port/tcpif.c | 2 +- power/conf.h | 1 + power/dat.h | 1 + power/main.c | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/port/tcpif.c b/port/tcpif.c index 2831acaf76cb63528d48755f3a5a7e541345c05f..d5e75d486e3db0d3e9f887541580fd73bd5a3a38 100644 --- a/port/tcpif.c +++ b/port/tcpif.c @@ -100,7 +100,7 @@ tcpstart(Ipconv *s, int mode, ushort window, char tos) tcpoutput(s); poperror(); qunlock(tcb); - sleep(&tcb->syner, notsyner, tcb); + tsleep(&tcb->syner, notsyner, tcb, 120*1000); if(tcb->state != Established && tcb->state != Syn_received) error(Etimedout); break; diff --git a/power/conf.h b/power/conf.h index 310e61886a24002fa1604508091f9bf8db9f4f2f..6153f757ada7064914fbbcde5bc951dcd55ed379 100644 --- a/power/conf.h +++ b/power/conf.h @@ -14,6 +14,7 @@ Conftab conftab[] = { {"ip", &conf.ip }, {"arp", &conf.arp }, {"frag", &conf.frag }, + {"debugger", &conf.debugger }, { 0, 0 }, }; diff --git a/power/dat.h b/power/dat.h index 15d2ce1a3617e993a6ef42d78cba76f4b1ad08a3..64f0f370a9945794fd170501b3e5aba5b3d254ed 100644 --- a/power/dat.h +++ b/power/dat.h @@ -50,6 +50,7 @@ struct Conf ulong ip; /* Ip conversations per interface */ ulong arp; /* Arp table size */ ulong frag; /* Ip fragment assemble queue size */ + ulong debugger; /* use processor 1 as a kernel debugger */ }; /* diff --git a/power/main.c b/power/main.c index 17e34d12022f563dd2666d8df11718f4d02822a0..315aa0c6e1a4c8e2fba220a6c38442c9d706e67d 100644 --- a/power/main.c +++ b/power/main.c @@ -198,7 +198,7 @@ init0(void) poperror(); } - if(conf.nmach > 2) + if(conf.debugger && conf.nmach > 2) kproc("kdebug", debugger, 0); kproc("alarm", alarmkproc, 0); touser((uchar*)(USTKTOP - sizeof(argbuf)));