From 7112b3cdda4ba9d20cee13a3dc9cd490fff3050f Mon Sep 17 00:00:00 2001 From: tholo Date: Thu, 14 Mar 1996 07:58:29 +0000 Subject: [PATCH] From Lite2; we should fail a malloc, not block waiting for memory to become available in in_pcballoc() --- sys/netinet/in_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 1bb338ddff4..8f5cc701afa 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.2 1996/03/03 22:30:31 niklas Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.3 1996/03/14 07:58:29 tholo Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -83,7 +83,7 @@ in_pcballoc(so, v) register struct inpcb *inp; int s; - MALLOC(inp, struct inpcb *, sizeof(*inp), M_PCB, M_WAITOK); + MALLOC(inp, struct inpcb *, sizeof(*inp), M_PCB, M_NOWAIT); if (inp == NULL) return (ENOBUFS); bzero((caddr_t)inp, sizeof(*inp)); -- 2.20.1