Skip to content

wait for process to terminate #32

@matti

Description

@matti
func shutdown(c chan os.Signal, done chan bool) {
	sig := <-c
	fmt.Println("SHUTDOWN", sig)
	fmt.Println("shutting down ...")
	time.Sleep(time.Second * 1)
	fmt.Println("... ok")

	done <- true
}

currently the process gets something like 1 millisecond to terminate, it prints "shutting down ...", but it's terminated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions