Dpkg::Exit(3perl)

Dpkg::Exit3perl

Program exit handlers

Overview

The Dpkg::Exit module provides support functions to run handlers on exit.

Functions

push_exit_handler($func)

Register a code reference into the exit function handlers stack.

pop_exit_handler()

Pop the last registered exit handler from the handlers stack.

run_exit_handlers()

Run the registered exit handlers.

Changes

Version 2.00 (dpkg 1.20.0)

Hide variable: @handlers.

Version 1.01 (dpkg 1.17.2)

New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers()

Deprecated variable: @handlers

Version 1.00 (dpkg 1.15.6)

Mark the module as public.

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From dpkg 1.23.11-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.