main.c (66494) | main.c (77349) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1999-2001 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#ifndef lint | 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#ifndef lint |
12static char id[] = "@(#)$Id: main.c,v 8.34.4.9 2000/09/09 02:23:03 gshapiro Exp $"; | 12static char id[] = "@(#)$Id: main.c,v 8.34.4.11 2001/05/07 22:06:37 gshapiro Exp $"; |
13#endif /* ! lint */ 14 15#if _FFR_MILTER 16#define _DEFINE 1 17#include "libmilter.h" 18#include <fcntl.h> 19#include <sys/stat.h> 20 --- 105 unchanged lines hidden (view full) --- 126 int obacklog; 127{ 128 if (obacklog <= 0) 129 return MI_FAILURE; 130 backlog = obacklog; 131 return MI_SUCCESS; 132} 133 | 13#endif /* ! lint */ 14 15#if _FFR_MILTER 16#define _DEFINE 1 17#include "libmilter.h" 18#include <fcntl.h> 19#include <sys/stat.h> 20 --- 105 unchanged lines hidden (view full) --- 126 int obacklog; 127{ 128 if (obacklog <= 0) 129 return MI_FAILURE; 130 backlog = obacklog; 131 return MI_SUCCESS; 132} 133 |
134 |
|
134int 135smfi_main() 136{ | 135int 136smfi_main() 137{ |
138 |
|
137 signal(SIGPIPE, SIG_IGN); 138 if (conn == NULL) 139 { 140 smi_log(SMI_LOG_FATAL, "%s: missing connection information", 141 smfi->xxfi_name); 142 return MI_FAILURE; 143 } 144 145 (void) atexit(mi_clean_signals); 146 if (mi_control_startup(smfi->xxfi_name) != MI_SUCCESS) 147 { 148 smi_log(SMI_LOG_FATAL, 149 "%s: Couldn't start signal thread", 150 smfi->xxfi_name); 151 return MI_FAILURE; 152 } 153 | 139 signal(SIGPIPE, SIG_IGN); 140 if (conn == NULL) 141 { 142 smi_log(SMI_LOG_FATAL, "%s: missing connection information", 143 smfi->xxfi_name); 144 return MI_FAILURE; 145 } 146 147 (void) atexit(mi_clean_signals); 148 if (mi_control_startup(smfi->xxfi_name) != MI_SUCCESS) 149 { 150 smi_log(SMI_LOG_FATAL, 151 "%s: Couldn't start signal thread", 152 smfi->xxfi_name); 153 return MI_FAILURE; 154 } 155 |
156 |
|
154 /* Startup the listener */ 155 if (mi_listener(conn, dbg, smfi, timeout, backlog) != MI_SUCCESS) 156 return MI_FAILURE; 157 158 return MI_SUCCESS; 159} 160#endif /* _FFR_MILTER */ | 157 /* Startup the listener */ 158 if (mi_listener(conn, dbg, smfi, timeout, backlog) != MI_SUCCESS) 159 return MI_FAILURE; 160 161 return MI_SUCCESS; 162} 163#endif /* _FFR_MILTER */ |