chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge old CVS `ian-dotfiles' repo, as a subtree where we can pick bits
[ian-dotfiles.git]
/
from-cvs
/
misc
/
close3onwards.c
diff --git a/from-cvs/misc/close3onwards.c
b/from-cvs/misc/close3onwards.c
new file mode 100644
(file)
index 0000000..
9788652
--- /dev/null
+++ b/
from-cvs/misc/close3onwards.c
@@ -0,0
+1,7
@@
+#include <stdlib.h>
+int main(int ac, char **av) {
+ int i;
+ for (i=3; i<32; i++) close(i);
+ execvp(av[1],av+1);
+ perror(av[1]);
+}