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.
我正在编写一个简单的 Linux shell,我想知道是否可以通过向其发送 SIGCONT 信号将后台作业置于前台。
您可以通过发送 a 来冻结进程,SIGSTOP并通过发送让它继续运行SIGCONT。
SIGSTOP
SIGCONT
如果您正在编写自己的 shell,则将进程发送到前台或后台由您决定。
在bash发送SIGCONT中让进程在后台继续,您需要发出fg到前台。
bash
fg