How do I get the ID of a remote under QNX 6?

bridged with qdn.public.porting
Post Reply
Shouqin Huo

How do I get the ID of a remote under QNX 6?

Post by Shouqin Huo » Mon Jan 06, 2003 11:33 pm

Under QNX 4.2, we used to be able to get the process ID by calling
qnx_name_attach(). Now under QNX 6, the similar call "name_open()" only
returns a channel id. That is fine for most communication needs. However, I
still need the id of a remote process sometimes. As an example, I need the
process id in order send a kill signal, etc.

So is there a way to get the remote process id?

thanks

Shouqin Huo

Quantum Magnetics, Inc.
huo@qm.com

David Gibbs

Re: How do I get the ID of a remote under QNX 6?

Post by David Gibbs » Tue Jan 07, 2003 12:17 am

Shouqin Huo <huo@qm.com> wrote:
Under QNX 4.2, we used to be able to get the process ID by calling
qnx_name_attach(). Now under QNX 6, the similar call "name_open()" only
returns a channel id. That is fine for most communication needs. However, I
still need the id of a remote process sometimes. As an example, I need the
process id in order send a kill signal, etc.

So is there a way to get the remote process id?
Try ConnectServerInfo().

-David
--
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Post Reply

Return to “qdn.public.porting”