{
    "mode": "perldoc",
    "parameter": "waitpid",
    "section": "-f",
    "url": "https://www.chedong.com/phpMan.php/perldoc/waitpid/json",
    "generated": "2026-06-03T03:32:17Z",
    "sections": [],
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Wait for the termination of arbitrary processes.",
        "examples": [
            {
                "description": "Sleep until all processes whose PIDs have been specified have exited",
                "command": "waitpid {{pid1 pid2 ...}}"
            },
            {
                "description": "Sleep for at most `n` seconds",
                "command": "waitpid {{-t|--timeout}} {{n}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Do not error if specified PIDs have already exited",
                "command": "waitpid {{-e|--exited}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Sleep until `n` of the specified processes have exited",
                "command": "waitpid {{-c|--count}} {{n}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Display help",
                "command": "waitpid {{-h|--help}}"
            }
        ]
    }
}