IO_DUP

Our resource manager are receiving one IO_DUP message when running ‘sin’.
Could somebody please explain?

  • Mario

inn.qnx.com <mcharest@clipzinformatic.com> wrote:

Our resource manager are receiving one IO_DUP message when running ‘sin’.
Could somebody please explain?

Mario,

This is done when iterating over all of the fd’s of a
process to attempt to determine which fd’s are real
file descriptors and then to get the pathname information
(if possible) on the file descriptors by using iofdinfo().
I think that we could probably get away with not doing
the dup(), but I’d have to ask the developer what the
rational was for that in the first place. I suspect that
it is just another sanity check.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf