]> diplodocus.org Git - nmh/blob - sbr/closefds.c
Fix stupid accidental dependence on a bash quirk in previous
[nmh] / sbr / closefds.c
1
2 /*
3 * closefds.c -- close-up fd's
4 *
5 * $Id$
6 *
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
10 */
11
12 #include <h/mh.h>
13
14
15 void
16 closefds(int i)
17 {
18 int nbits = OPEN_MAX;
19
20 for (; i < nbits; i++)
21 close (i);
22 }