Skip to content

Cleanup capturing signals #1

Description

@GoogleCodeExporter
1. Execute the following program:

package main

import (
    "code.google.com/p/gopass"
    "time"
)

func main() {
    _, err := gopass.GetPass("password:")
    if err != nil {
        println("error:", err)
    }
    println("Going to sleep...")
    time.Sleep(1 * time.Minute)
    println("... leaving!")
}

2. Hit CTRL+C when the program "sleeps"

We would expect the program to quit due to the receiving SIGINT. Instead the 
signal is silently captured and left unprocessed. Calling signal.Stop upon 
leaving GoPass passes control back to the program.

Original issue reported on code.google.com by pnovot...@googlemail.com on 5 Jan 2014 at 11:44

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions