I have suspend a process through
kill -TSTP <pid>. Then tried to continue it with
kill -CONT <pid>. But After completion of process, control is not returning to bash. Why this is happening? And what to do to overcome this problem?
I started the process (a shell script) from one bash (say bash-1) with
./name.sh. Then suspended that process with the command
kill -TSTP <pid> through bash-2. Finally tried to resume it with
kill -CONT <pid> through bash-2. But after completion of shell script, control is not returning, it just staying there forever.