godot/platform/macos/export
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
..
export.cpp Add Advanced Settings switch to Editor Settings 2024-09-17 12:20:55 +02:00
export.h Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
export_plugin.cpp linux/bsd/mac: Use pkill to stop remote instance over SSH 2025-09-16 11:25:48 +01:00
export_plugin.h Fix editor one-click icons not showing. 2025-07-21 12:18:44 +03:00
logo.svg Style: Enforce trailing newlines on svgs 2025-02-18 11:02:45 -06:00
run_icon.svg Style: Enforce trailing newlines on svgs 2025-02-18 11:02:45 -06:00