From: ian Date: Mon, 23 Jul 2001 19:00:15 +0000 (+0000) Subject: Found close3onwards.c on jura. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=ian-dotfiles.git;a=commitdiff_plain;h=da55a2c14cc7791bfef1d867b4d764baf340aef1 Found close3onwards.c on jura. --- diff --git a/misc/close3onwards.c b/misc/close3onwards.c new file mode 100644 index 0000000..9788652 --- /dev/null +++ b/misc/close3onwards.c @@ -0,0 +1,7 @@ +#include +int main(int ac, char **av) { + int i; + for (i=3; i<32; i++) close(i); + execvp(av[1],av+1); + perror(av[1]); +}