Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用织物触发Ctrl+ C,换句话说,是否可以通过 bash 手动触发 KeyboardInterrupt?
ctrl+c生成一个 SIGINT 信号。
ctrl+c
您可以发送一个信号,kill -SIGINT pid其中pid包含进程 ID。你想发出信号。 kill是内置的 Bash。
kill -SIGINT pid
pid
kill