signal

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

signal

import "clog/signal"

Package signal implement some signal bridge to channels. File: "signal.go"

Index

Constants

const CHAN_SIZE = 10

Variables

var (
    CtrlC   chan None // Ctrl+C -> SIGINT or SIGTERM
    CtrlZ   chan None // Ctrl+Z -> SIGTSTP
    CtrlBS  chan None // Ctrl+\ -> SIGQUIT
    SIGTERM chan None
    SIGHUP  chan None
)

func Wait

func Wait() bool

Debug wait

type None

type None struct{}

Generated by gomarkdoc

Documentation

Overview

Package signal implement some signal bridge to channels. File: "signal.go"

Index

Constants

View Source
const CHAN_SIZE = 10

Variables

View Source
var (
	CtrlC   chan None // Ctrl+C -> SIGINT or SIGTERM
	CtrlZ   chan None // Ctrl+Z -> SIGTSTP
	CtrlBS  chan None // Ctrl+\ -> SIGQUIT
	SIGTERM chan None
	SIGHUP  chan None
)

Functions

func Wait

func Wait() bool

Debug wait

Types

type None

type None struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL