14 lines
303 B
Go
14 lines
303 B
Go
// backend\postwork_lock_other.go
|
|
|
|
//go:build !windows
|
|
|
|
package main
|
|
|
|
import "os"
|
|
|
|
func lockPostWorkFile(path string) (*os.File, error) {
|
|
// Auf Unix verhindert ein offenes Handle kein Löschen.
|
|
// Der Fallback hält nur ein Handle, damit der Code plattformübergreifend baut.
|
|
return os.Open(path)
|
|
}
|