On this page
  1. os.kill
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

os.kill

Prev: os.getppid | Up: os | Next: os.link
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org — os.kill
Tags: #public #python3 #stdlib #os


Import

import os
from os import kill

Signature & Overview

os.kill(pid, signal, /)

Kill a process with a signal.

Usage

import os

# Signal 0 checks whether a process exists and can be signaled without terminating it
os.kill(os.getpid(), 0)

Gotchas

REPL Inspect

from os import kill
help(kill)

Linked from

Related notes