Skip to main content

Kills the current process by using taskkill.exe

Project description

Kills the current process by using 'taskkill.exe'

pip install suicideproc

Tested against Windows 10 / Python 3.10 / Anaconda

    Terminates the current process in a hidden manner.

    This function terminates the current process by using the 'taskkill.exe'
    command in a subprocess. The termination is performed in a hidden manner,
    without displaying any windows or prompts to the user.

    Note:
        This function is intended for special use cases and should be used with caution.
        Terminating a process abruptly can lead to unexpected results and data loss.

    Raises:
        FileNotFoundError: If the 'taskkill.exe' command is not found on the system.

    Example:
		from suicideproc import commit_suicide
        commit_suicide()

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suicideproc-0.10.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

suicideproc-0.10-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page