I created the following C code on Linux CentOS to create a process.
#include <stdio.h>
#include <unistd.h>
int main ()
{
int i = 0;
while ( 1 )
{
printf ( "\nhello %d\n", i ++ );
sleep ( 2 );
}
}
I compiled it into hello_count. When I do ./hello_count, the output is as follows:
hello 0
hello 1
hello 2
...
until I kill him. I stopped execution using the following command
kill -s SIGSTOP 2956
When i do
ps -e
process 2956 ./hello_countis still indicated.
Is there any command or method to resume (not restart) a process with process ID 2956?
In addition, when I stop the process, the command line displays:
[1]+ Stopped ./hello_count
What does the [1]+line above mean ?
source
share