chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38b7de8
)
Found close3onwards.c on jura.
author
ian
<ian>
Mon, 23 Jul 2001 19:00:15 +0000
(19:00 +0000)
committer
ian
<ian>
Mon, 23 Jul 2001 19:00:15 +0000
(19:00 +0000)
misc/close3onwards.c
[new file with mode: 0644]
patch
|
blob
diff --git a/misc/close3onwards.c
b/misc/close3onwards.c
new file mode 100644
(file)
index 0000000..
9788652
--- /dev/null
+++ b/
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]);
+}