From: tholo Date: Thu, 14 Mar 1996 07:58:29 +0000 (+0000) Subject: From Lite2; we should fail a malloc, not block waiting for memory to become X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7112b3cdda4ba9d20cee13a3dc9cd490fff3050f;p=openbsd From Lite2; we should fail a malloc, not block waiting for memory to become available in in_pcballoc() --- 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));