public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Insert GPL headers to source files.
Hongli Lai (Phusion) (author)
Thu Apr 03 08:58:34 -0700 2008
commit  bd6e3b45467073d02a623a130bf818461b791213
tree    49e07b70bb43c986f6cd511e52c461950da2fa31
parent  524223496be5a996e9c0035fb04d8dd9d79c771f
...
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
3
4
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,4 +1,21 @@
0
 # kate: syntax ruby
0
+
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
0
 require 'rubygems'
0
 require 'rake/rdoctask'
...
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
3
4
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,4 +1,20 @@
0
 #!/usr/bin/env ruby
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 PASSENGER_ROOT = File.expand_path(File.dirname(__FILE__) << "/..")
0
 $LOAD_PATH.unshift("#{PASSENGER_ROOT}/lib")
0
 
...
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
3
4
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,4 +1,20 @@
0
 #!/usr/bin/env ruby
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 require 'pathname'
0
 $LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib"))
0
 require 'passenger/spawn_manager'
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_APPLICATION_H_
0
 #define _PASSENGER_APPLICATION_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_APPLICATION_POOL_H_
0
 #define _PASSENGER_APPLICATION_POOL_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_APPLICATION_POOL_CLIENT_SERVER_H_
0
 #define _PASSENGER_APPLICATION_POOL_CLIENT_SERVER_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include <apr_strings.h>
0
 #include <algorithm>
0
 #include <cstdlib>
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_CONFIGURATION_H_
0
 #define _PASSENGER_CONFIGURATION_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_DUMMY_SPAWN_MANAGER_H_
0
 #define _PASSENGER_DUMMY_SPAWN_MANAGER_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_EXCEPTIONS_H_
0
 #define _PASSENGER_EXCEPTIONS_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include <ap_config.h>
0
 #include <httpd.h>
0
 #include <http_config.h>
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_HOOKS_H_
0
 #define _PASSENGER_HOOKS_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include <iostream>
0
 #include <fstream>
0
 #include "Logging.h"
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_LOGGING_H_
0
 #define _PASSENGER_LOGGING_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_MESSAGE_CHANNEL_H_
0
 #define _PASSENGER_MESSAGE_CHANNEL_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_SPAWN_MANAGER_H_
0
 #define _PASSENGER_SPAWN_MANAGER_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_STANDARD_APPLICATION_POOL_H_
0
 #define _PASSENGER_STANDARD_APPLICATION_POOL_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
23
24
25
0
@@ -1,10 +1,25 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include <sys/types.h>
0
 #include <sys/stat.h>
0
 #include <cstdlib>
0
 #include <climits>
0
 #include <unistd.h>
0
-#include <fstream>
0
-#include <iostream>
0
 #include "Utils.h"
0
 
0
 #define SPAWN_SERVER_SCRIPT_NAME "passenger-spawn-server"
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #ifndef _PASSENGER_UTILS_H_
0
 #define _PASSENGER_UTILS_H_
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include <httpd.h>
0
 #include <http_config.h>
0
 #include "Configuration.h"
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
0
@@ -1,3 +1,18 @@
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
 require 'mkmf'
0
 create_makefile('native_support')
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+/*
0
+ * Phusion Passenger - http://www.modrails.com/
0
+ * Copyright (C) 2008 Phusion
0
+ *
0
+ * This program is free software; you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation; version 2 of the License.
0
+ *
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+ *
0
+ * You should have received a copy of the GNU General Public License along
0
+ * with this program; if not, write to the Free Software Foundation, Inc.,
0
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+ */
0
 #include "ruby.h"
0
 #include <sys/types.h>
0
 #include <sys/un.h>
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 require 'socket'
0
 require 'timeout'
0
 require 'passenger/message_channel'
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 require 'rubygems'
0
 require 'passenger/utils'
0
 module Passenger
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
0
 require 'rubygems'
0
 require 'socket'
0
 require 'etc'
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+# Phusion Passenger - http://www.modrails.com/
0
+# Copyright (C) 2008 Phusion
0
+#
0
+# This program is free software; you can redistribute it and/or modify
0
+# it under the terms of the GNU General Public License as published by
0
+# the Free Software Foundation; version 2 of the License.
0
+#
0
+# This program is distributed in the hope that it will be useful,
0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+# GNU General Public License for more details.
0
+#
0
+# You should have received a copy of the GNU General Public License along
0
+# with this program; if not, write to the Free Software Foundation, Inc.,
0
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
+
<