V2EX  ›  英汉词典

SIGUSR2

Definition / 定义

SIGUSR2:在类 Unix/POSIX 系统中,表示“用户自定义信号 2”的信号名。它是留给应用程序自行约定用途的信号(例如触发重新加载配置、切换日志级别、执行自定义动作等)。不同程序对它的具体含义可能不同。

Pronunciation / 发音

/ˌɛs aɪ dʒi ˌjuː ɛs ɑːr ˈtuː/

Examples / 例句

Send SIGUSR2 to the process to trigger its custom action.
向该进程发送 SIGUSR2 以触发它的自定义动作。

In production, we use SIGUSR2 to ask the daemon to reopen log files without restarting.
在生产环境中,我们用 SIGUSR2 让守护进程在不重启的情况下重新打开日志文件。

Etymology / 词源

来自 Unix/POSIX 的信号(signal)命名体系SIG 表示 signal,USR 表示 user-defined(用户自定义),2 表示第二个用户自定义信号(与 SIGUSR1 成对出现)。该命名在 C/POSIX API 中广泛使用。

Related Words / 相关词

Literary Works / 文学作品与典籍

  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)
  • The Linux Programming Interface(Michael Kerrisk)
  • UNIX Network Programming(W. Richard Stevens)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   824 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 18:16 · PVG 02:16 · LAX 10:16 · JFK 13:16
♥ Do have faith in what you're doing.