Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - how to start a stopped thread: (2 Items)
   
how to start a stopped thread  
Hello,

Using the Momentics IDE, I delivered SIGSTP to a process with one thread.  The thread's state shows as "Stopped"

Now, how do I start it again?

If I start an application "foo" from the shell,
then hit ^Z its thread has the same state "Stopped"

By typing either "bg" or "fg" I can start the thread from the point at which "foo" had been stopped.

Now, how do I start it again when "bg" and "fg" don't know about the process in question?

(fg says "argument must be %job or process id", but when I put fg 4612126, the process id it says "no such job")

Thanks,
Andy
Re: how to start a stopped thread  
Hi Andrew,

All other things being equal, you should be able to send a SIGCONT (i.e.
the "continue" signal)

Regards,
Neil

On Thu, 2009-01-29 at 14:59 -0500, Andrew Sherk wrote:
> Hello,
> 
> Using the Momentics IDE, I delivered SIGSTP to a process with one thread.  The thread's state shows as "Stopped"
> 
> Now, how do I start it again?
> 
> If I start an application "foo" from the shell,
> then hit ^Z its thread has the same state "Stopped"
> 
> By typing either "bg" or "fg" I can start the thread from the point at which "foo" had been stopped.
> 
> Now, how do I start it again when "bg" and "fg" don't know about the process in question?
> 
> (fg says "argument must be %job or process id", but when I put fg 4612126, the process id it says "no such job")
> 
> Thanks,
> Andy
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post21019
>