charles d509031e84
Add a check for when the command is canceled by the program on Window… (#29538)
Close #29509

Windows, unlike Linux, does not have signal-specified exit codes.
Therefore, we should add a Windows-specific check for Windows. If we
don't do this, the logs will always show a failed status, even though
the command actually works correctly.

If you check the Go source code in exec_windows.go, you will see that it
always returns exit code 1.

![image](https://github.com/go-gitea/gitea/assets/30816317/9dfd7c70-9995-47d9-9641-db793f58770c)

The exit code 1 does not exclusively signify a SIGNAL KILL; it can
indicate any issue that occurs when a program fails.

(cherry picked from commit 423372d84ab3d885e47d4a00cd69d6040b61cc4c)
2024-03-06 12:10:45 +08:00
..
2024-03-02 17:58:09 +01:00
2023-12-19 09:29:05 +00:00
2023-07-07 05:31:56 +00:00
2024-02-05 13:33:58 +01:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2022-12-30 23:31:00 +08:00
2023-11-03 15:21:05 +00:00