Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-25-2007, 12:14 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 21

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

i dont this happened..
but i ran a job yesterday, which in turn runs a series of child job...luckily , a child job went to UNKWOWN 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 that the task is finished normally ..

thanks in advance..

Old 11-25-2007, 12:23 AM   #2
LQ 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.


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 02:34 AM
Cron job or Sleep timer??? Which is best in my situation helptonewbie Linux - General 2 07-21-2007 07: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 01:47 PM
how to wake up from S3 acpi sleep state? bluesmanu Linux - Laptop and Netbook 4 01-15-2006 04:22 PM
How to change modules state permanently? polemon Linux - Newbie 3 09-27-2005 07:21 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:48 PM.

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