Skip to content

runtime: SIGCONT and SIGTSTP aren't handle-able #8953

Closed
@gopherbot

Description

@gopherbot

by [email protected]:

signal.Notify accepts SIGCONT as a parameter, but SIGCONT is never actually delivered to
the channel. I was able to register SIGCONT handler with cgo, but couldn't find any way
from Go.

Tested on:

* go version go1.3.1 darwin/amd64
* go version go1.3.3 linux/amd64

With the following source, I would expect the program to terminate immediately; however,
it hangs indefinitely. You can change SIGCONT into nearly any other signal to verify.
SIGTSTP has the same issue.

package main

import (
    "os"
    "os/signal"
    "syscall"
)

func main() {
    ch := make(chan os.Signal)
    signal.Notify(ch, syscall.SIGCONT)
    syscall.Kill(0, syscall.SIGCONT)
    <-ch
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions