Skip to content

Commit

Permalink
Merge pull request nodejscn#688 from roland-reed/patch-1
Browse files Browse the repository at this point in the history
Translation correction
  • Loading branch information
nodejh authored Jan 3, 2020
2 parents f872da0 + b253995 commit 4647072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/signal_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ process.on('SIGTERM', handle);
可以给其绑定监听器,但是 Windows Node.js 会在它触发后 10 秒钟无条件关闭。
在非 Windows 平台,`SIGHUP` 默认的绑定行为是结束 Node.js,但是一旦给它绑定了新的监听器,默认行为会被移除。
* `'SIGTERM'` Windows 中不支持,可以给其绑定监听器。
* `'SIGINT'` 在终端运行时,可以被所有平台支持,通常可以通过 `<Ctrl>+C` 触发(虽然这个不能配置)。
* `'SIGINT'` 在终端运行时,可以被所有平台支持,通常可以通过 `<Ctrl>+C` 触发(虽然这是可以配置的)。
当终端运行在原始模式,它不会被触发。
* `'SIGBREAK'` Windows 中按下 `<Ctrl>+<Break>` 会被触发,非 Windows 平台中可以为其绑定监听器,但是没有方式触发或发送此事件。
* `'SIGWINCH'` 当控制台被调整大小时会触发。Windows 中只有当光标移动并写入到控制台、或者以原始模式使用一个可读 tty 时,才会触发。
Expand Down

0 comments on commit 4647072

Please sign in to comment.