godot/platform/linuxbsd
Will Thompson 3d322c3f36 linux/bsd/mac: Use pkill to stop remote instance over SSH
Previously, the PIDs of any running instances of the game on the remote
device were found with `pgrep`, whose output was passed as parameters to
`kill`. The problem with doing this is that passing zero arguments to
`kill` (which happens when no instances of the game are running
remotely) is an error: it shows the command usage, and exits with status
2 indicating a command-line syntax error:

    $ kill
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    $ echo $?
    2

As far as I can tell, all systems that have a `pgrep` command also have
a `pkill` command which accepts (a superset of) the same parameters as
`pgrep` and kills the matched processes instead of listing them on
STDOUT.

In the case where no processes match, `pkill` exits with status 1; but
does so silently.

Invoke `pkill` rather than `pgrep` + `kill`.
2025-09-16 11:25:48 +01:00
..
doc_classes Merge pull request #102552 from DarioSamo/shader-baker 2025-05-28 17:09:38 -05:00
export linux/bsd/mac: Use pkill to stop remote instance over SSH 2025-09-16 11:25:48 +01:00
wayland Fix Wayland build with OpenGL disabled. 2025-09-06 18:37:49 +03:00
x11 [Linux/BSD] Initialize DBus only once. 2025-08-22 09:26:11 +03:00
crash_handler_linuxbsd.cpp Fix various race conditions with capturing of script backtraces 2025-06-02 19:46:19 +02:00
crash_handler_linuxbsd.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
dbus-so_wrap.c [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
dbus-so_wrap.h [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
detect.py Fix the usage of libudev and dbus with SDL 2025-07-31 15:05:06 +05:00
fontconfig-so_wrap.c [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
fontconfig-so_wrap.h [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
freedesktop_at_spi_monitor.cpp [Linux/BSD] Initialize DBus only once. 2025-08-22 09:26:11 +03:00
freedesktop_at_spi_monitor.h Use org.a11y.Status/ScreenReaderEnabled on Linux. 2025-08-18 17:36:49 +03:00
freedesktop_portal_desktop.cpp [Linux/BSD] Initialize DBus only once. 2025-08-22 09:26:11 +03:00
freedesktop_portal_desktop.h AccessKit integration for macOS, Linux, and Windows. 2025-04-08 20:25:47 +03:00
freedesktop_screensaver.cpp [Linux/BSD] Initialize DBus only once. 2025-08-22 09:26:11 +03:00
freedesktop_screensaver.h Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
godot_linuxbsd.cpp Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
msvs.py Fix .sln project generation logic for Rider to support all OS and all C++ toolchains 2025-04-08 15:40:05 +02:00
os_linuxbsd.cpp Add support for SDL3 joystick input driver 2025-06-25 01:28:50 +02:00
os_linuxbsd.h Add support for SDL3 joystick input driver 2025-06-25 01:28:50 +02:00
platform_config.h Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
platform_gl.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
platform_linuxbsd_builders.py Fix linux builds with debug symbols when there is a space in the path. 2024-12-05 10:31:12 -05:00
README.md Update links to the contributing section of the docs to the appropriate new sections. 2025-09-12 01:04:14 +02:00
SCsub Fix the usage of libudev and dbus with SDL 2025-07-31 15:05:06 +05:00
speechd-so_wrap.c [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
speechd-so_wrap.h [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
tts_linux.cpp Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
tts_linux.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
xkbcommon-so_wrap.c [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00
xkbcommon-so_wrap.h [X11] Add support for dead keys without active IME. Fix IME focus and cleanup. 2023-01-30 13:31:48 +02:00

Linux/*BSD platform port

This folder contains the C++ code for the Linux/*BSD platform port.

See also misc/dist/linux folder for additional files used by this platform.

Documentation

Artwork license

logo.svg is derived from the Linux logo:

Permission to use and/or modify this image is granted provided you acknowledge me lewing@isc.tamu.edu and The GIMP if someone asks.