> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/clients-and-utilities/administrative-tools/mariadb-waitpid.md).

# mariadb-waitpid

`mariadb_waitpid` is a utility for terminating processes.

{% hint style="info" %}
It runs on Unix-like systems, making use of the `kill()` system call.
{% endhint %}

Previously, the client was called `mysql_waitpid`. It can still be accessed under this name, via a symlink in Linux, or an alternate binary in Windows.

## Usage

```
mariadb-waitpid [options] pid time
```

## Description

`mariadb-waitpid` sends signal `0` to the process *pid* and waits up to *time* seconds for the process to terminate. *pid*. *time* must be positive integers.

Returns `0` if the process terminates in time or does not exist, and `1` otherwise.

Signal `1` is used if the `kill()` system call cannot handle signal `0`.

## Options

| Option        | Description                                                       |
| ------------- | ----------------------------------------------------------------- |
| -?, --help    | Display help and exit.                                            |
| -I, --help    | Synonym for `-?`.                                                 |
| -v, --verbose | Be more verbose. Give a warning, if kill can't handle signal `0`. |
| -V, --version | Print version information and exit.                               |

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/clients-and-utilities/administrative-tools/mariadb-waitpid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
