Is it possible to know who is logged on (who doesn’t exists), and which
photon session and phrelay belongs to who ?
thanks,
Alain.
Is it possible to know who is logged on (who doesn’t exists), and which
photon session and phrelay belongs to who ?
thanks,
Alain.
“Alain Bonnefoy” <alain.bonnefoy@icbt.com> wrote in message
news:3BDE758D.2ED5CF86@icbt.com…
Is it possible to know who is logged on (who doesn’t exists), and which
photon session and phrelay belongs to who ?
Try pidin user.
As for the photon session phrelay, I guess via pidin user and
Xiodan’s port of LSOF it might be possibe to figure it out. Haven’t
given much though about this.
thanks,
Alain.
Question:
Does anyone know how to spawn a process on a remote node in qnx6? I have
code that does it in qnx4 via qnx_spawn_options, but I’m trying to port to
qnx6.
Also, is there an option to specify P_NOWAIT in spawn for qnx6, or is that
the default behavior. Thanks!
Neville
Neville Bonwit <neville@erg.sri.com> wrote:
Question:
Does anyone know how to spawn a process on a remote node in qnx6? I have
code that does it in qnx4 via qnx_spawn_options, but I’m trying to port to
qnx6.
Not at this time.
Also, is there an option to specify P_NOWAIT in spawn for qnx6, or is that
the default behavior.
It is still P_NOWAIT.
QNX Training Services
I do not answer technical questions by email.
David,
Does your answer to the first question mean that it’s impossible to do in QNX6
at this time or
that you don’t know how to do it?
For the second question, where do I specify the P_NOWAIT flag in the new spawn()
function (i.e. which parameter is it)? Is there documentation that describes
all these flags somewhere? I could only find QNX4 docs describing that
particular flag. Thanks.
Neville
David Gibbs wrote:
Neville Bonwit <> neville@erg.sri.com> > wrote:
Question:Does anyone know how to spawn a process on a remote node in qnx6? I have
code that does it in qnx4 via qnx_spawn_options, but I’m trying to port to
qnx6.Not at this time.
Also, is there an option to specify P_NOWAIT in spawn for qnx6, or is that
the default behavior.It is still P_NOWAIT.
-David
QNX Training Services
I do not answer technical questions by email.
Neville Bonwit <neville@erg.sri.com> wrote:
David,
Does your answer to the first question mean that it’s impossible to do in QNX6
at this time or
that you don’t know how to do it?
It is supported, from RTP 6.1.
Look into spawn_inheritance_type structure, and the “SPAWN_SETND” flag.
That’s how “on -n” and “on -f” working on RTP. (Of cause you have to
have QNET running).
-xtang
Phew! Good news!
Is there any documentation on the spawn_inheritance_type structure? I couldn’t find
any anywhere except in a largely undocumented example. Some docs on this would
really help.
Also, if anyone has any examples dealing with the spawn_inheritance_type structure,
I’d really appreciate it. Thanks!
Neville
Xiaodan Tang wrote:
Neville Bonwit <> neville@erg.sri.com> > wrote:
David,Does your answer to the first question mean that it’s impossible to do in QNX6
at this time or
that you don’t know how to do it?It is supported, from RTP 6.1.
Look into spawn_inheritance_type structure, and the “SPAWN_SETND” flag.
That’s how “on -n” and “on -f” working on RTP. (Of cause you have to
have QNET running).-xtang
Neville Bonwit <neville@erg.sri.com> wrote:
David,
Does your answer to the first question mean that it’s impossible to do in QNX6
at this time or
that you don’t know how to do it?
It was not possible in 6.0. I think it started being possible in 6.1.
For the second question, where do I specify the P_NOWAIT flag
in the new spawn()
You can’t set in spawn() – just in spawnl() and friends.
function (i.e. which parameter is it)? Is there documentation that describes
all these flags somewhere? I could only find QNX4 docs describing that
particular flag. Thanks.
If you want to see the documentation for P_NOWAIT (etc), check the docs
for spawnl() or any of those – it is there.
P_NOWAIT will not be settable for spawn() itself. spawn() will always
create a new process, and returns you the pid.
What spawnl() and friends do, is look at the P_NOWAIT or P_WAIT flag,
and if P_WAIT() is set, they will use waitpid() to not return until
the child has exited. That is, P_WAIT is a convenience to tell the
library to do some extra work for you, rather than a fundamental.
If you look at qnx_spawn() under QNX4, you would note that it doesn’t
have a P_WAIT/P_NOWAIT or equivalent parameter either.
QNX Training Services
I do not answer technical questions by email.
Neville Bonwit <neville@erg.sri.com> wrote:
Phew! Good news!
Also, if anyone has any examples dealing with the spawn_inheritance_type structure,
I’d really appreciate it. Thanks!
Look at the docs for spawn(), in particular the section that starts:
The structure specified by inherit contains at least these members:
Then proceeds to talk about members of the structure.
-David
–
QNX Training Services
I do not answer technical questions by email.