Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 当我向后台作业发送SIGCONT信号时发生了什么?_Shell_Background_Signals_Background Foreground - Fatal编程技术网

Shell 当我向后台作业发送SIGCONT信号时发生了什么?

Shell 当我向后台作业发送SIGCONT信号时发生了什么?,shell,background,signals,background-foreground,Shell,Background,Signals,Background Foreground,我正在编写一个简单的Linux shell,我想知道是否可以通过发送一个SIGCONT信号将后台作业放到前台。您可以通过发送一个SIGSTOP来冻结进程,并通过发送SIGCONT让它继续运行 如果您正在编写自己的shell,则将进程发送到前台或后台取决于您 在bashsendingSIGCONT中,该过程在后台继续,您需要发出fg才能放到前台

我正在编写一个简单的Linux shell,我想知道是否可以通过发送一个SIGCONT信号将后台作业放到前台。

您可以通过发送一个
SIGSTOP
来冻结进程,并通过发送
SIGCONT
让它继续运行

如果您正在编写自己的shell,则将进程发送到前台或后台取决于您

bash
sending
SIGCONT
中,该过程在后台继续,您需要发出
fg
才能放到前台