Re: kerneld/request-route interaction bug with kernel patch

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Mon, 1 Jul 1996 20:19:24 +0400 (MSD)


Hello!

> I think that the problem is fixed by the patch below. Possibly there is
> a better way to do this, but this is working for me. With this patch,
> for example, the first 'rlogin' to a remote system will succeed. Without
> it, the rlogin will fail.

Oooouch! It means that kerneld_send sleeps... It is disaster.
Even if your patch seems to be working, it will eventually destroy your system.

You can two choices:
- comment call to kerneld_send.
- patch kerneld.h.

static inline int kerneld_route(const char *ip_route)
{
+ if (intr_count) return NULL;
return kerneld_send(KERNELD_REQUEST_ROUTE,
- 0 | KERNELD_WAIT,
+ 0 | KERNELD_NOWAIT,
strlen(ip_route), ip_route, NULL);
}

Your rlogin will not work from first time, just because it is
impossible for current TCP.

Alexey Kuznetsov.