---
name: "FCGI_Finish"
section: "3"
platform: "linux"
package: "fcgi"
version: "2.4.7-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FCGI_Finish"
---

# FCGI\_Finish(3)

NAME\
      FCGI\_Finish\
          \- fcgi\_stdio compatibility library

SYNOPSIS\
      \#include "fcgi\_stdio.h"

     void\
      FCGI\_Finish(void);

DESCRIPTION\
      The FCGI\_Finish function finishes the current request from the\
      HTTP server.  The current request was started by the most recent\
      call to [FCGI\_Accept(3)](/FCGI_Accept/3.md).

     FCGI\_Finish allows an application to interleave other activities\
      with the processing of requests.  In an extreme case, an\
      application would call FCGI\_Finish to complete the current\
      request before exiting, e.g. to reclaim leaked storage.

     In completing the current request, FCGI\_Finish may detect\
      errors, e.g. a broken pipe to a client who has disconnected\
      early.  FCGI\_Finish ignores such errors.  An application\
      that wishes to handle such errors should explicitly call\
      fclose(stderr), then fclose(stdout); an EOF return from\
      either one indicates an error.

     FCGI\_Finish frees any storage allocated by the most recent call\
      to FCGI\_Accept.  See [FCGI\_Accept(3)](/FCGI_Accept/3.md) for warnings against retaining\
      pointers to this storage.

SEE ALSO\
      [FCGI\_Accept(3)](/FCGI_Accept/3.md)

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.\
      $Id: FCGI\_Finish.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp $
