]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/statd/simu.c
Use 65534 for anon uid/gid rather than -2
[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 #ifdef HAVE_CONFIG_H
8 #include <config.h>
9 #endif
10
11 #include "statd.h"
12 #include "notlist.h"
13
14 extern void my_svc_exit (void);
15
16
17 /*
18  * Services SM_SIMU_CRASH requests.
19  */
20 void *
21 sm_simu_crash_1_svc (void *argp, struct svc_req *rqstp)
22 {
23   static char *result = NULL;
24
25   note (N_WARNING, "*** SIMULATING CRASH! ***");
26   my_svc_exit ();
27
28   if (rtnl)
29     nlist_kill (&rtnl);
30
31   return ((void *)&result);
32 }