]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.4 1987-09-11 15:33:11 wesommer | |
10 | * Disable shutdowns completely. | |
11 | * | |
12 | * Revision 1.4 87/09/09 01:43:11 wesommer | |
13 | * Disable server shutdown request. | |
14 | * | |
15 | * Revision 1.3 87/08/04 02:41:29 wesommer | |
16 | * Clean up messages. | |
17 | * | |
18 | * Revision 1.2 87/06/21 16:42:12 wesommer | |
19 | * Performance work, rearrangement of include files. | |
20 | * | |
21 | * Revision 1.1 87/06/02 20:07:18 wesommer | |
22 | * Initial revision | |
23 | * | |
24 | */ | |
25 | ||
26 | #ifndef lint | |
27 | static char *rcsid_sms_shutdown_c = "$Header$"; | |
28 | #endif lint | |
29 | ||
30 | #include <strings.h> | |
31 | #include <sys/errno.h> | |
32 | #include "sms_server.h" | |
33 | ||
34 | extern char *takedown; | |
35 | extern char *whoami; | |
36 | ||
37 | sigshut() | |
38 | { | |
39 | takedown = "Shut down by signal."; | |
40 | } | |
41 | ||
42 | void | |
43 | do_shutdown(cl) | |
44 | client *cl; | |
45 | { | |
46 | static char buf[BUFSIZ]; | |
47 | /* | |
48 | * This feature is no longer supported. Sorry. | |
49 | */ | |
50 | com_err(whoami, 0, "Shutdown request by %s rejected", | |
51 | cl->clname); | |
52 | cl->reply.sms_status = EACCES; | |
53 | } | |
54 |