LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-24-2007, 11:14 PM   #1
sun_sun
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Rep: Reputation: 15
Change job state from SLEEP to RUN


i dont know..how this happened..
but i ran a job yesterday, which in turn runs a series of child job...luckily , a child job went to UNKWOWN state..so when i saw that today...i killed the child job..but now...i see the parent job is in SLEEP state...
i got to know this when i had a look at /proc/parent_job_pid/status --- this stated the job is in SLEEPING state..

can i change the state of this to RUNNING..so that the task is finished normally ..

thanks in advance..

sun_sun
 
Old 11-24-2007, 11:23 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
A process goes into "sleep" state when it's blocked, waiting on something. Often, a process goes to sleep when it's waiting on some kind of I/O. In this case, I wouldn't be surprised if your process was doing a "waitpid()" on the child process ... waiting for notification that the child exited gracefully. Which, of course, it'll never get. Because you killed the child.

Suggestion: it sound like you'll probably have to simply stop and restart the parent job.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change sleep idle time? justmonkey23 Fedora 1 09-23-2010 01:34 AM
Cron job or Sleep timer??? Which is best in my situation helptonewbie Linux - General 2 07-21-2007 06:08 PM
Is there a way to change agp state with mesa drivers (ie from 1x to 4x)? shorty_boy Linux - Software 2 06-30-2007 12:47 PM
how to wake up from S3 acpi sleep state? bluesmanu Linux - Laptop and Netbook 4 01-15-2006 03:22 PM
How to change modules state permanently? polemon Linux - Newbie 3 09-27-2005 06:21 PM


All times are GMT -5. The time now is 02:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration