XU XUv0.8.8
中文

API

#os/signal

import: #os/signal

counts: 3 fns, 0 methods, 0 types, 8 consts, 0 ifaces

Unix signal numbers. notify is not hooked to the kernel and throws so signals are not silently dropped.

const sighup

XuAPI
pub const sighup = 1

Purpose

`os/signal` numbers (Unix). Notify is not hooked to the kernel Value `1`.

Parameters

none

const interrupt

XuAPI
pub const interrupt = 2

Purpose

Public constant `interrupt`. Value `2`.

Parameters

none

const sigint

XuAPI
pub const sigint = 2

Purpose

Public constant `sigint`. Value `2`.

Parameters

none

const sigquit

XuAPI
pub const sigquit = 3

Purpose

Public constant `sigquit`. Value `3`.

Parameters

none

const kill

XuAPI
pub const kill = 9

Purpose

Public constant `kill`. Value `9`.

Parameters

none

const sigkill

XuAPI
pub const sigkill = 9

Purpose

Public constant `sigkill`. Value `9`.

Parameters

none

const sigpipe

XuAPI
pub const sigpipe = 13

Purpose

Public constant `sigpipe`. Value `13`.

Parameters

none

const sigterm

XuAPI
pub const sigterm = 15

Purpose

Public constant `sigterm`. Value `15`.

Parameters

none

notify

XuAPI
pub fn notify(c chan int, sig int) int

Purpose

notify; returns int. Throws on failure.

Parameters

c chan int
byte or character code (channel; type chan int)
sig int
sig (int)

Returns

int — a value of this type

stop

XuAPI
pub fn stop(c chan int) int

Purpose

stop; returns int. Throws on failure.

Parameters

c chan int
byte or character code (channel; type chan int)

Returns

int — a value of this type

ignore

XuAPI
pub fn ignore(sig int) int

Purpose

ignore; returns int. Throws on failure.

Parameters

sig int
sig (int)

Returns

int — a value of this type