aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Williams2025-08-20 13:27:58 +0000
committerEmil Williams2025-08-20 13:27:58 +0000
commitfd209e3f2564897f209da0ab1bb15000fa63e09d (patch)
treeceb05c845e7f99182de8ff61ef1bb916f5793881
parentf36c1fe8ed9ccc82eda0cd5c031bd1ab00f2e096 (diff)
downloadgorillanest-fd209e3f2564897f209da0ab1bb15000fa63e09d.tar.xz
gorillanest-fd209e3f2564897f209da0ab1bb15000fa63e09d.tar.zst
I'm Going To Personally Ensure This Explodes Horribly
-rwxr-xr-xgorillanest5
1 files changed, 4 insertions, 1 deletions
diff --git a/gorillanest b/gorillanest
index 41e5c34..300731d 100755
--- a/gorillanest
+++ b/gorillanest
@@ -61,6 +61,7 @@ sub GN::repository { # /$username/$repository
}
openlog("gorillanest", "ndelay,pid", Sys::Syslog::LOG_DAEMON);
+my $sock = FCGI::OpenSocket('/tmp/gorillanest.socket', 100);
try {
my $public = 'git/public';
my $dbfile = 'gorillanest.sqlite3';
@@ -68,7 +69,8 @@ try {
found => 0,
access => 0,
);
- my $request = FCGI::Request();
+
+ my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV, $sock);
my $template = Template->new({INCLUDE_PATH => 'template'});
my $head = 0;
my $a_template;
@@ -111,3 +113,4 @@ try {
} catch ($error) {
info("Crashed: $error");
}
+FCGI::CloseSocket($sock);