003 File Manager
Current Path:
/usr/src/contrib/sendmail/libmilter
usr
/
src
/
contrib
/
sendmail
/
libmilter
/
📁
..
📄
Makefile
(346 B)
📄
Makefile.m4
(1.37 KB)
📄
README
(8.57 KB)
📄
comm.c
(6.5 KB)
📁
docs
📄
engine.c
(42.01 KB)
📄
example.c
(5.61 KB)
📄
handler.c
(1014 B)
📄
libmilter.h
(9.5 KB)
📄
listener.c
(20.86 KB)
📄
main.c
(4.31 KB)
📄
monitor.c
(4.61 KB)
📄
signal.c
(3.86 KB)
📄
sm_gethost.c
(4.32 KB)
📄
smfi.c
(17.19 KB)
📄
worker.c
(16.39 KB)
Editing: handler.c
/* * Copyright (c) 1999-2003, 2006 Proofpoint, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * */ #include <sm/gen.h> SM_RCSID("@(#)$Id: handler.c,v 8.40 2013-11-22 20:51:36 ca Exp $") #include "libmilter.h" #if !_FFR_WORKERS_POOL /* ** MI_HANDLE_SESSION -- Handle a connected session in its own context ** ** Parameters: ** ctx -- context structure ** ** Returns: ** MI_SUCCESS/MI_FAILURE */ int mi_handle_session(ctx) SMFICTX_PTR ctx; { int ret; if (ctx == NULL) return MI_FAILURE; ctx->ctx_id = (sthread_t) sthread_get_id(); /* ** Detach so resources are freed when the thread returns. ** If we ever "wait" for threads, this call must be removed. */ if (pthread_detach(ctx->ctx_id) != 0) ret = MI_FAILURE; else ret = mi_engine(ctx); mi_clr_ctx(ctx); ctx = NULL; return ret; } #endif /* !_FFR_WORKERS_POOL */
Upload File
Create Folder