OpenQNX :: The QNX Community Portal

Oct 07, 2008 - 12:15 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 40 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Peter Facka
Post subject: getting process information  PostPosted: May 19, 2006 - 03:57 PM
Guest





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/
 
   
Reply with quote Back to top
Igor Kovalenko
Post subject: Re: getting process information  PostPosted: May 24, 2006 - 01:44 AM
Guest





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/
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.