view src/master/auth-process.h @ 727:8dd8ebe6bcac HEAD

We use close-on-exec flag now to make sure that master process closes the fds when executing other processes.
author Timo Sirainen <tss@iki.fi>
date Sun, 01 Dec 2002 17:39:20 +0200
parents 90a65c017bf0
children 30f6811f4952
line wrap: on
line source

#ifndef __AUTH_PROCESS_H
#define __AUTH_PROCESS_H

/* cookie_reply is NULL if some error occured */
typedef void (*AuthCallback)(AuthCookieReplyData *cookie_reply,
			     void *context);

typedef struct _AuthProcess AuthProcess;

/* Find process for given id */
AuthProcess *auth_process_find(int id);

/* Request information about given cookie */
void auth_process_request(AuthProcess *process, int id,
			  unsigned char cookie[AUTH_COOKIE_SIZE],
			  AuthCallback callback, void *context);

/* Close any fds used by auth processes */
void auth_processes_destroy_all(void);

void auth_processes_init(void);
void auth_processes_deinit(void);

#endif