Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab2/signal/ #10

Open
utterances-bot opened this issue Apr 18, 2023 · 3 comments
Open

lab2/signal/ #10

utterances-bot opened this issue Apr 18, 2023 · 3 comments
Labels

Comments

@utterances-bot
Copy link

四:信号处理 - USTC OSH 2023 课程主页

https://osh-2023.github.io/lab2/signal/

@liuly0322 liuly0322 added the comments label Apr 18, 2023 — with utterances
Copy link
Member

liuly0322 commented Apr 18, 2023

未来可能的文档改进:

  1. 调整文档组织:
    • 增加 bash 的 CTRL+Z 暂停前台进程 + jobs 展示,先引入前后台进程和进程组的概念;
    • 先不要求丢弃命令,而是要求通过设置前台进程组来保证执行命令时 CTRL+C 不退出 shell,以免混淆。
  2. 对实验给出更多提示:
    • 需要在合适的地方忽略 SIGTTOU 信号及切换前后台进程组;
    • 解释清楚嵌套 shell 的含义:当 shell 未处理 SIGINT 信号时,多层 shell 按下 ctrl+c 每次应该只退出最里层。

Copy link
Member

还有就是 echo 的内容可以改回 taokystrong 去年文档

Copy link
Member

liuly0322 commented Apr 19, 2023

希望信号只影响 shell 创建的子进程

可以调整为

希望信号只被发送到当前正在执行命令的子进程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants