From Lite2; we should fail a malloc, not block waiting for memory to become
authortholo <tholo@openbsd.org>
Thu, 14 Mar 1996 07:58:29 +0000 (07:58 +0000)
committertholo <tholo@openbsd.org>
Thu, 14 Mar 1996 07:58:29 +0000 (07:58 +0000)
available in in_pcballoc()

sys/netinet/in_pcb.c

index 1bb338d..8f5cc70 100644 (file)
@@ -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));