projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve cleaner performance.
[bluesky.git]
/
nfs3
/
nfsd.c
diff --git
a/nfs3/nfsd.c
b/nfs3/nfsd.c
index
b2e1071
..
f9cbd7f
100644
(file)
--- a/
nfs3/nfsd.c
+++ b/
nfs3/nfsd.c
@@
-26,11
+26,20
@@
void register_rpc();
BlueSkyFS *fs;
BlueSkyStore *store;
BlueSkyFS *fs;
BlueSkyStore *store;
+static void shutdown_handler(int num)
+{
+ g_print("SIGINT caught, shutting down...\n");
+ g_print("Proxy statistics:\n");
+ bluesky_stats_dump_all();
+ exit(1);
+}
+
int main(int argc, char *argv[])
{
int i;
signal(SIGPIPE, SIG_IGN);
int main(int argc, char *argv[])
{
int i;
signal(SIGPIPE, SIG_IGN);
+ signal(SIGINT, shutdown_handler);
bluesky_init();
g_set_prgname("nfsd");
bluesky_init();
g_set_prgname("nfsd");
@@
-44,8
+53,6
@@
int main(int argc, char *argv[])
register_rpc();
register_rpc();
- bluesky_debug_dump(fs);
-
svc_run();
fprintf(stderr, "%s", "svc_run returned");
exit(1);
svc_run();
fprintf(stderr, "%s", "svc_run returned");
exit(1);