commit a331ac4c61d14ab837908b0adfdce0aeaa692981
parent 9b3d503bacfb3fdfc48ce47e3e1169e8a0ee91be
Author: rsc <devnull@localhost>
Date: Wed, 19 Jan 2005 16:51:37 +0000
do not use shutdown on mac
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/cmd/vac/vacfs.c b/src/cmd/vac/vacfs.c
@@ -65,7 +65,7 @@ int noperm;
Fid * newfid(int);
void error(char*);
void io(void);
-void shutdown(void);
+void vacshutdown(void);
void usage(void);
int perm(Fid*, int);
int permf(VacFile*, char*, int);
@@ -202,9 +202,11 @@ threadmain(int argc, char *argv[])
threadexits(0);
}
-void srv(void* a) {
+void
+srv(void *a)
+{
io();
- shutdown();
+ vacshutdown();
}
void
@@ -854,7 +856,7 @@ init(char *file, char *host, long ncache, int readOnly)
}
void
-shutdown(void)
+vacshutdown(void)
{
Fid *f;