From fd209e3f2564897f209da0ab1bb15000fa63e09d Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Wed, 20 Aug 2025 13:27:58 +0000 Subject: [PATCH] I'm Going To Personally Ensure This Explodes Horribly --- gorillanest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5