Skip navigation.
Home
The QNX Community Portal

View topic - getting process information

getting process information

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

getting process information

Postby Peter Facka » Fri May 19, 2006 3:57 pm

Hi
Please excuse me. I post it before completion. So ones more:
I'm porting program orginaly developed for qnx4. One of it's purpose is to
watch porcesses
and if some process is enormously consuming cpu, memory or open too many
file descriptors it is restarted.
For this purpose it use functions: qnx_psinfo (process information) and
qnx_fd_query (file descriptors information)
I'm searching whole day for equivalents of these functions in Qnx 6 but
with no success.
Thank you for help.

Peter Facka

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Peter Facka
 

Re: getting process information

Postby Igor Kovalenko » Wed May 24, 2006 1:44 am

Look at procfs and associated header files. Also you might want to look at
source code of "spin" utility. It should be on the '3rd party CD'...

"Peter Facka" <pfacka@microsetep-hdo.sk> wrote in message
news:op.s9s2lsh1byo5le@ot2pf.microstep-hdo.sk...
Hi
Please excuse me. I post it before completion. So ones more:
I'm porting program orginaly developed for qnx4. One of it's purpose is to
watch porcesses
and if some process is enormously consuming cpu, memory or open too many
file descriptors it is restarted.
For this purpose it use functions: qnx_psinfo (process information) and
qnx_fd_query (file descriptors information)
I'm searching whole day for equivalents of these functions in Qnx 6 but
with no success.
Thank you for help.

Peter Facka

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Igor Kovalenko
 


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 1 guest