spawnv/spawnl do not return an "R" process state code

N

nushin

Greetings,

I am running RedHat 7.3 and trying to spawn a hello.py program from
hello_driver.py by using spawn*( ) API, as a P_NOWAIT :

os.spawnv(os.P_NOWAIT,'/usr/bin/python',('python hello.py >/dev/null
&'))

and when i check the process state code of hello.py by:
ps -aux

i see that it's in Z (Zombie) state.

If i use spawnl( ), instead of spawnv, i get hello.py running in "S"
(sleep) state. i.e.,
os.spawnv(os.P_NOWAIT,'/usr/bin/python',('python hello.py >/dev/null
&'))

How can i use spawn*( ) so that hello.py runs in normal process state
code of "R"?

I am using Python 2.2.2., and hello.py prints "hello world" a million
times.

Regards,
Nushin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top