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. 🧚✨