]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/statd/simu.c
rerun autoconf
[nfs-utils.git] / utils / statd / simu.c
1 /*
2  * Copyright (C) 1995, 1997-1999 Jeffrey A. Uphoff
3  *
4  * NSM for Linux.
5  */
6
7 #include "config.h"
8 #include "statd.h"
9 #include "notlist.h"
10
11 extern void my_svc_exit (void);
12
13
14 /*
15  * Services SM_SIMU_CRASH requests.
16  */
17 void *
18 sm_simu_crash_1_svc (void *argp, struct svc_req *rqstp)
19 {
20   static char *result = NULL;
21
22   note (N_WARNING, "*** SIMULATING CRASH! ***");
23   my_svc_exit ();
24
25   if (rtnl)
26     nlist_kill (&rtnl);
27
28   return ((void *)&result);
29 }