signal

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 5 Imported by: 0

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