control.c (132943) | control.c (141858) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2004 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#include <sendmail.h> 12 | 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#include <sendmail.h> 12 |
13SM_RCSID("@(#)$Id: control.c,v 8.125 2003/06/24 17:46:06 ca Exp $") | 13SM_RCSID("@(#)$Id: control.c,v 8.126 2004/08/04 20:54:00 ca Exp $") |
14 15#include <sm/fdset.h> 16 17/* values for cmd_code */ 18#define CMDERROR 0 /* bad command */ 19#define CMDRESTART 1 /* restart daemon */ 20#define CMDSHUTDOWN 2 /* end daemon */ 21#define CMDHELP 3 /* help */ --- 19 unchanged lines hidden (view full) --- 41#if _FFR_CONTROL_MSTAT 42 { "mstat", CMDMSTAT }, 43#endif /* _FFR_CONTROL_MSTAT */ 44 { NULL, CMDERROR } 45}; 46 47 48 | 14 15#include <sm/fdset.h> 16 17/* values for cmd_code */ 18#define CMDERROR 0 /* bad command */ 19#define CMDRESTART 1 /* restart daemon */ 20#define CMDSHUTDOWN 2 /* end daemon */ 21#define CMDHELP 3 /* help */ --- 19 unchanged lines hidden (view full) --- 41#if _FFR_CONTROL_MSTAT 42 { "mstat", CMDMSTAT }, 43#endif /* _FFR_CONTROL_MSTAT */ 44 { NULL, CMDERROR } 45}; 46 47 48 |
49static void controltimeout __P((int)); |
|
49int ControlSocket = -1; 50 51/* 52** OPENCONTROLSOCKET -- create/open the daemon control named socket 53** 54** Creates and opens a named socket for external control over 55** the sendmail daemon. 56** --- 185 unchanged lines hidden (view full) --- 242** none. 243*/ 244 245static jmp_buf CtxControlTimeout; 246 247/* ARGSUSED0 */ 248static void 249controltimeout(timeout) | 50int ControlSocket = -1; 51 52/* 53** OPENCONTROLSOCKET -- create/open the daemon control named socket 54** 55** Creates and opens a named socket for external control over 56** the sendmail daemon. 57** --- 185 unchanged lines hidden (view full) --- 243** none. 244*/ 245 246static jmp_buf CtxControlTimeout; 247 248/* ARGSUSED0 */ 249static void 250controltimeout(timeout) |
250 time_t timeout; | 251 int timeout; |
251{ 252 /* 253 ** NOTE: THIS CAN BE CALLED FROM A SIGNAL HANDLER. DO NOT ADD 254 ** ANYTHING TO THIS ROUTINE UNLESS YOU KNOW WHAT YOU ARE 255 ** DOING. 256 */ 257 258 errno = ETIMEDOUT; --- 178 unchanged lines hidden --- | 252{ 253 /* 254 ** NOTE: THIS CAN BE CALLED FROM A SIGNAL HANDLER. DO NOT ADD 255 ** ANYTHING TO THIS ROUTINE UNLESS YOU KNOW WHAT YOU ARE 256 ** DOING. 257 */ 258 259 errno = ETIMEDOUT; --- 178 unchanged lines hidden --- |