info > Dpkg::IPC

📛 NAME

Dpkg::IPC — helper functions for IPC

🚀 Quick Reference

Use CaseCommandDescription
Execute a programspawn(%opts)Creates a child process and executes a program.
Wait for a processwait_child($pid, %opts)Waits for a child process to finish.
Redirect stdin/stdout/stderrfrom_*, to_*, error_to_*Redirect I/O to files, handles, pipes, or strings.
Set environment variablesenvPopulate %ENV in the child process.
Delete environment variablesdelete_envRemove environment variables in the child process.
Set signal handlerssigPopulate %SIG in the child process.
Delete signal handlersdelete_sigReset signals to default dispositions.
Change directorychdirChild process changes directory before exec.
Wait with timeouttimeoutKill the child process if it exceeds the time limit.

📖 DESCRIPTION

Dpkg::IPC offers helper functions to allow you to execute other programs in an easy, yet flexible way, while hiding all the gory details of IPC (Inter-Process Communication) from you.

⚙️ FUNCTIONS

📦 spawn(%opts)

$pid = spawn(%opts)

Creates a child process and executes another program in it. The arguments are interpreted as a hash of options, specifying how to handle the in and output of the program to execute. Returns the pid of the child process (unless the wait_child option was given).

Any error will cause the function to exit with one of the Dpkg::ErrorHandling functions.

Options:

⏳ wait_child($pid, %opts)

wait_child($pid, %opts)

Takes as first argument the pid of the process to wait for. Remaining arguments are taken as a hash of options. Returns nothing. Fails if the child has been ended by a signal or if it exited non-zero.

Options:

📜 CHANGES

🔖 Version 1.02 (dpkg 1.18.0)

Change options: wait_child() now kills the process when reaching the timeout.

🔖 Version 1.01 (dpkg 1.17.11)

New options: spawn() now accepts sig and delete_sig.

🔖 Version 1.00 (dpkg 1.15.6)

Mark the module as public.

🔗 SEE ALSO

1.21.1 2025-09-09 Dpkg::IPC(3perl)

Dpkg::IPC
📛 NAME 🚀 Quick Reference 📖 DESCRIPTION ⚙️ FUNCTIONS
📦 spawn(%opts) ⏳ wait_child($pid, %opts)
📜 CHANGES
🔖 Version 1.02 (dpkg 1.18.0) 🔖 Version 1.01 (dpkg 1.17.11) 🔖 Version 1.00 (dpkg 1.15.6)
🔗 SEE ALSO

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-27 02:13 @216.73.217.85
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!