aboutsummaryrefslogtreecommitdiff
path: root/gorillanest.pl.fcgi
diff options
context:
space:
mode:
Diffstat (limited to 'gorillanest.pl.fcgi')
-rwxr-xr-xgorillanest.pl.fcgi19
1 files changed, 19 insertions, 0 deletions
diff --git a/gorillanest.pl.fcgi b/gorillanest.pl.fcgi
new file mode 100755
index 0000000..f4c0687
--- /dev/null
+++ b/gorillanest.pl.fcgi
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Syntax::Keyword::Try;
+use FCGI;
+
+require "gorillanest.pl.cgi";
+
+our $request = FCGI::Request();
+
+try {
+ while($request->Accept() >= 0) {
+ master();
+ }
+} catch ($error) {
+ info("Crashed: $error");
+}