kardianos / minwinsvc

A minimal windows only service stub for go that allows running any go program as a windows service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Causes issues on WinPE

xaduha opened this issue · comments

package main

import (
	"log"
	"time"

	_ "github.com/kardianos/minwinsvc"
)

func main() {
	log.Println("one")
	time.Sleep(time.Second)
	log.Println("two")
}

on Win10-based WinPE this snippet doesn't get to "two". My fault for including minwinsvc where it shouldn't have been, but this doesn't even return panic message, just silently dies, couldn't figure out what was going on in my actual program.

It can't panic because windows kills it.