mirror of
https://github.com/wweir/sower.git
synced 2026-10-20 00:15:34 +00:00
syscall.SIGUSR1 is undefined on Windows, so the release matrix failed to build there (v1.7.2 never reached its release job). Move the signal handling into a unix build-tagged file with a no-op elsewhere; the profile writer itself stays portable.
10 lines
219 B
Go
10 lines
219 B
Go
//go:build !unix
|
|
|
|
package main
|
|
|
|
import "context"
|
|
|
|
// dumpHeapOnSignal is a no-op where SIGUSR1 is not defined; the heap profile
|
|
// itself (dumpHeapProfile) is portable.
|
|
func dumpHeapOnSignal(context.Context, string) {}
|