diff options
| author | Emil Williams | 2025-08-20 23:46:09 +0000 |
|---|---|---|
| committer | Emil Williams | 2025-08-20 23:46:09 +0000 |
| commit | df2e0e9da234428306fb933f84e21078dc75020b (patch) | |
| tree | 0500a46d9ddc1ea080919b7bcbc8279c11aa440f /gorillanest.pl.fcgi | |
| parent | e49369309a6893e968f01c7cf38e27ea9219a4d9 (diff) | |
| parent | efb00d45c75762bac1b89f07128d00909caebd8d (diff) | |
| download | gorillanest-df2e0e9da234428306fb933f84e21078dc75020b.tar.xz gorillanest-df2e0e9da234428306fb933f84e21078dc75020b.tar.zst | |
I Doubt It Works The Same
Diffstat (limited to 'gorillanest.pl.fcgi')
| -rwxr-xr-x | gorillanest.pl.fcgi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gorillanest.pl.fcgi b/gorillanest.pl.fcgi new file mode 100755 index 0000000..2692877 --- /dev/null +++ b/gorillanest.pl.fcgi @@ -0,0 +1,22 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use Syntax::Keyword::Try; +use FCGI; + +use lib '.'; +# BEGIN { require 'config.pl'; } +BEGIN { require 'gorillanest.pl.cgi'; } + +try { + open STDERR, '>', LOG_FILE or die LOG_FILE . ": $!"; + my $sock = FCGI::OpenSocket(SOCKET_FILE, 100); + my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV, $sock); + while($request->Accept() >= 0) { + master(); + } +} catch ($error) { + info("Crashed: $error"); +} |
