Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (53 sloc) 2.013 kB
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
24
25 #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
26 # error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
27 #endif
28
29 #ifndef CHEROKEE_SPAWNER_H
30 #define CHEROKEE_SPAWNER_H
31
1bedf78 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3211 5dc97367-9…
alobbs authored
32 #ifdef HAVE_SYS_TYPES_H
33 # include <sys/types.h>
34 #endif
35
36 #ifdef HAVE_PWD_H
37 # include <pwd.h>
38 #endif
39
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
40 #include <cherokee/common.h>
41 #include <cherokee/buffer.h>
42 #include <cherokee/shm.h>
c5fe3a4 @alobbs Errors are not longer written through the logger objects. They are
alobbs authored
43 #include <cherokee/logger_writer.h>
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
44
45 CHEROKEE_BEGIN_DECLS
46
301cd97 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3184 5dc97367-9…
alobbs authored
47 #define SPAWN_SHARED_LEN 4096
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
48
49 extern cherokee_shm_t cherokee_spawn_shared;
50
51 ret_t cherokee_spawner_set_active (cherokee_boolean_t active);
52
53 ret_t cherokee_spawner_init (void);
54 ret_t cherokee_spawner_free (void);
55
c5fe3a4 @alobbs Errors are not longer written through the logger objects. They are
alobbs authored
56 ret_t cherokee_spawner_spawn (cherokee_buffer_t *binary,
57 cherokee_buffer_t *user_name,
58 uid_t uid,
59 gid_t gid,
60 int env_inherited,
61 char **envp,
62 cherokee_logger_writer_t *error_writer,
63 pid_t *pid_ret);
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-9…
alobbs authored
64
65 CHEROKEE_END_DECLS
66
67 #endif /* CHEROKEE_SPAWNER_H */
Something went wrong with that request. Please try again.