go-judge/env
criyle bf22d6f479
Some checks are pending
Build / Goreleaser (push) Waiting to run
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (amd64_v3, darwin) (push) Blocked by required conditions
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (amd64_v3, linux) (push) Blocked by required conditions
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (amd64_v3, windows) (push) Blocked by required conditions
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (arm64_v8.0, darwin) (push) Blocked by required conditions
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (arm64_v8.0, linux) (push) Blocked by required conditions
Build / Upload artifacts-${{ matrix.os }}-${{ matrix.arch }} (arm64_v8.0, windows) (push) Blocked by required conditions
feat(main): ignoring SIGTERM when managed by PM2
- there is a race condition during shutting down when go-judge receives SIGTERM from systemd and PM2 dumps a STOPPED status, resulting go-judge not auto-restart after a reboot
- PM2 uses SIGINT for stop signal so that we can distinguish different stop signal sent by different process manager
- So when detected that we are manged by PM2, we ignore the SIGTERM signal from the systemd and wait for PM2's SIGINT to avoid race condition

Unitech/pm2#6036
2025-10-28 16:27:13 +00:00
..
linuxcontainer refactor(envexec): normalize error messages 2025-05-25 22:44:50 -04:00
macsandbox refactor(*): replace path with file path and normalize error messages 2025-05-25 22:19:42 -04:00
pool linuxc: fix cgroup fd & add clean up to containers when exit 2025-02-20 23:13:57 -05:00
winc refactor(*): replace path with file path and normalize error messages 2025-05-25 22:19:42 -04:00
config.go feat: support -no-fallback cli flag (#151) (#152) 2025-06-09 17:03:02 -04:00
doc.go Refactor package structure & debug outputs 2020-12-25 17:25:09 -08:00
env_cgroup_linux.go feat(main): ignoring SIGTERM when managed by PM2 2025-10-28 16:27:13 +00:00
env_darwin.go refactor(env): desugar zap logger 2025-05-28 19:58:48 -04:00
env_linux.go fix: typo (#157) 2025-06-26 14:33:06 -04:00
env_others.go refactor(env): desugar zap logger 2025-05-28 19:58:48 -04:00
env_windows.go refactor(env): desugar zap logger 2025-05-28 19:58:48 -04:00
mount_linux.go build(deps): replace unmaintained yaml package 2025-05-29 23:52:16 +00:00
noseccomp_linux.go linuxcontainer: allow initCmd to be executed to initialize new container 2024-04-16 11:14:17 +00:00
seccomp_linux.go *: bump to go1.18 2022-03-20 23:40:21 -07:00