MARIADB-WAITPID(1)

πŸ“¦
version 13.0.2 Β· 7 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ’« MARIADB-WAITPID πŸ’«

okay bestie, welcome to mariadb-waitpid(1), straight out of the MariaDB Database System manual πŸ’– she's a tiny little tool but she does exactly one job and she does it flawlessly, which honestly is main character energy.


🌸 NAME 🌸

mariadb-waitpid β€” kill a process and wait for its termination 🫢

(and yes, the plot twist: mariadb-waitpid is now a symlink to mariadb-waitpid β€” iconic, no notes, that's literally what it says ✨)


πŸŽ€ SYNOPSIS πŸŽ€

mariadb-waitpid [options] pid wait_time

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: mariadb-waitpid signals a process to terminate, and then it waits for that process to actually exit. patient queen behavior πŸ’…

it does this using the kill() system call and Unix signals β€” so like, this is a Unix and Unix-like systems situation only, no cap. 🌈

you invoke her like this:

shell> mariadb-waitpid [options] pid wait_time

mariadb-waitpid sends signal 0 to the process identified by pid, then waits up to wait_time seconds for that process to terminate. and listen β€” pid and wait_time must be positive integers. that's non-negotiable, she's not doing decimals. 😀

here's the scoring system, bestie:

  • if the process termination happens within the wait time, or if the process doesn't exist at all β†’ she returns 0 ✨
  • otherwise β†’ she returns 1 πŸ’€

and one little technical note iykyk: if the kill() system call cannot handle signal 0, then mariadb-waitpid() uses signal 1 instead. she's got a backup plan, obviously. πŸ”₯

mariadb-waitpid supports the following options:

  • --help, -?, -I β€” display a help message and exit. the "wait what does this do again" button πŸ™ˆ
  • --verbose, -v β€” verbose mode. displays a warning if signal 0 could not be used and signal 1 is used instead. she'll literally tell you when she had to switch it up πŸ‘‘
  • --version, -V β€” display version information and exit. the "who even are you" button πŸ’–

Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2025 MariaDB Foundation

This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 🫢

You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.


🌟 SEE ALSO 🌟

For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/ β€” go read it, she ate fr fr πŸ“šβœ¨


πŸ’œ AUTHOR πŸ’œ

MariaDB Foundation (http://www.mariadb.org/). periodt. πŸ’…


and that's the whole page, bestie β€” brought to you by MariaDB 11.8, dated 5 March 2025, in the MARIADB-WAITPID(1) era πŸŽ€ mwah, go wait on some processes responsibly πŸ¦‹πŸ’–

πŸ“¦ where this page comes from