=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/file.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/aucat/Attic/file.c 2009/01/23 17:38:15 1.10 +++ src/usr.bin/aucat/Attic/file.c 2009/02/04 20:35:14 1.11 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.10 2009/01/23 17:38:15 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.11 2009/02/04 20:35:14 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -68,9 +68,10 @@ LIST_FOREACH(f, &file_list, entry) nfds += f->ops->nfds(f); - if (nfds > MAXFDS) - err(1, "%s: too many polled files", name); - + if (nfds > MAXFDS) { + DPRINTF("file_new: %s: too many polled files\n", name); + return NULL; + } f = malloc(ops->size); if (f == NULL) err(1, "file_new: %s", ops->name);