ref: d2eefbbd2f102ffbf897afc3f638c02d3fb13e7b
parent: f0279eb1881ab98d17126c28687cc738fc5e1177
author: Sigrid Haflínudóttir <[email protected]>
date: Wed Feb 26 19:21:05 EST 2020
dsp: use thread funcs
--- a/dsp/fs.c
+++ b/dsp/fs.c
@@ -288,7 +288,7 @@
}
void
-main(int argc, char **argv)
+threadmain(int argc, char **argv)
{
char *srv, *mtpt;
MetaGlue mg;
@@ -323,6 +323,6 @@
closefile(createfile(fs.tree->root, "ctl", nil, 0666, &rootaux[Xctl]));
closefile(createfile(fs.tree->root, "metadata", nil, 0444, &rootaux[Xmetadata]));
closefile(createfile(fs.tree->root, "clone", nil, 0444, &rootaux[Xclone]));
- postmountsrv(&fs, srv, mtpt, MREPL);
- exits(nil);
+ threadpostmountsrv(&fs, srv, mtpt, MREPL);
+ threadexits(nil);
}