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..
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.
|All times are GMT -5. The time now is 08:14 AM.|