FCGI_SETEXITSTATUS(3)
π FCGI_SetExitStatus(3) β fcgi_stdio compatibility library
okay bestie, gather round, because today we're talking about FCGI_SetExitStatus from the fcgi_stdio compatibility library, and honestly? she's short, she's sweet, she's giving tiny function with main character energy β¨
πΈ SYNOPSIS πΈ
#include "fcgi_stdio.h"
void
FCGI_SetExitStatus(int status);
like, that's it. that's the whole vibe. one include, one function, one int. π
π¦ DESCRIPTION π¦
so what does she actually do? she sets the exit status for the current FastCGI request. periodt.
and what even is that exit status, you ask? it's the status code the request would have exited with, had the request been run as a CGI program. so like, imagine your lil request was a regular CGI program that finished up and exited β the status it would've bounced out with? that's what this bad boy is holding onto. π«Ά
and here's the fun part, bestie: you can call FCGI_SetExitStatus several times during a request. no cap. go wild. call it once, call it twice, call it whenever the mood strikes.
but β and this is the important bit β the last call before the request ends determines the value. so whatever you set most recently before the request wraps up? that's the one that counts. the earlier ones are just lil character development moments, they don't make the final cut. π
π SEE ALSO π
go read those too, iykyk, they're all in the same friend group π
π HISTORY π
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
fr fr, go read the LICENSE file. no skipping. the warranty disclaimer is real and she means it. π
$Id: FCGI_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp $
and that's the whole page, bestie! π this iconic lil number comes to you straight from the $Id: FCGI_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp $ line β version 1.1.1.1, dated 1997/09/16, checked in by stanleyg back when some of us weren't even born yet π and she's still out here setting exit statuses. slay. π§β¨
π¦ where this page comes from
- alpine 3.22: fcgi-doc 2.4.6-r0 Β· OML
- alpine 3.23: fcgi-doc 2.4.6-r0 Β· OML
- alpine 3.24: fcgi-doc 2.4.6-r0 Β· OML
- arch rolling: fcgi 2.4.7-1 Β· custom
- debian trixie: libfcgi-dev 2.4.5-0.1 Β· FASTCGI
- epel 10: fcgi-devel 2.4.7-1.el10_2 Β· OML
- epel 9: fcgi-devel 2.4.7-1.el9 Β· OML
- fedora 43: fcgi-devel 2.4.6-2.fc43 Β· OML
- fedora 43: fcgi-devel 2.4.6-2.fc43 Β· OML
- fedora 43: fcgi-devel 2.4.7-1.fc43 Β· OML
- fedora 43: fcgi-devel 2.4.7-1.fc43 Β· OML
- fedora 44: fcgi-devel 2.4.7-2.fc44 Β· OML
- fedora 44: fcgi-devel 2.4.7-2.fc44 Β· OML
- nixos 26.05: fcgi 2.4.7
- nixpkgs unstable: fcgi 2.4.7
- opensuse-leap 16.0: FastCGI-devel 2.4.6-160000.2.2 Β· OML
- opensuse-leap 16.0: FastCGI-devel 2.4.6-160000.2.2 Β· OML
- opensuse-leap 16.0: FastCGI-devel 2.4.6-160000.2.2 Β· OML
- opensuse-leap 16.0: FastCGI-devel 2.4.6-160000.2.2 Β· OML
- ubuntu questing: libfcgi-dev 2.4.5-0.1build1
- ubuntu resolute: libfcgi-dev 2.4.5-0.1build2 Β· FASTCGI
- ubuntu stonking: libfcgi-dev 2.4.5-0.1build2 Β· FASTCGI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms