Revision 24319,
738 bytes
checked in by broder, 15 years ago
(diff) |
New Moira snapshot from SVN.
|
Rev | Line | |
---|
[24319] | 1 | /* $Id: mr_shutdown.c 3956 2010-01-05 20:56:56Z zacheiss $ |
---|
[23095] | 2 | * |
---|
| 3 | * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology |
---|
| 4 | * For copying and distribution information, please see the file |
---|
| 5 | * <mit-copyright.h>. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <mit-copyright.h> |
---|
| 9 | #include "mr_server.h" |
---|
| 10 | |
---|
| 11 | #include <errno.h> |
---|
| 12 | |
---|
[24319] | 13 | RCSID("$HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/server/mr_shutdown.c $ $Id: mr_shutdown.c 3956 2010-01-05 20:56:56Z zacheiss $"); |
---|
[23095] | 14 | |
---|
| 15 | extern char *takedown; |
---|
| 16 | extern char *whoami; |
---|
| 17 | |
---|
| 18 | void sigshut(int sig) |
---|
| 19 | { |
---|
| 20 | takedown = "Shut down by signal."; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | void do_shutdown(client *cl) |
---|
| 24 | { |
---|
| 25 | /* |
---|
| 26 | * This feature is no longer supported. Sorry. |
---|
| 27 | */ |
---|
| 28 | com_err(whoami, 0, "Shutdown request by %s rejected", cl->clname); |
---|
| 29 | client_reply(cl, EACCES); |
---|
| 30 | } |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.