Linux CentOS で次の C コードを実行して、プロセスを作成しました。
#include <stdio.h>
#include <unistd.h>
int main ()
{
int i = 0;
while ( 1 )
{
printf ( "\nhello %d\n", i ++ );
sleep ( 2 );
}
}
にコンパイルしましたhello_count
。すると./hello_count
、出力は次のようになります。
hello 0
hello 1
hello 2
...
殺すまで。次のコマンドを使用して実行を停止しました
kill -s SIGSTOP 2956
私がする時
ps -e
プロセス2956 ./hello_count
はまだリストされています。
プロセス ID 2956 のプロセスを再開する (再起動しない) コマンドまたは方法はありますか?
また、プロセスを停止すると、コマンド ラインに次のように表示されます。
[1]+ Stopped ./hello_count
[1]+
上記の行の はどういう意味ですか?