Hmm, I don't think I'm following you.
Lemme see:
I'm forking, then opening a handle inside the 'child'.
After I'm done processing, I'm closing the child only handle.
Then I'm exiting the child (or join in ithreads I guess).
That being the case, the handle shouldn't exist in the original thread. I think.
And sadly, I can't close the original thread, as it's the server itself. I can get the FD number with fileno(), so I might try an explicit close.
D
| [reply] |
True, it's really just ithreads. So, that being the case is there no way to drop an FD once you're done with it? Since the server is running in the primary thread, is the only way to drop all those handles to drop the server? Ack.
I'd also be happy to use spawn or process::create, but those seem to only work on external executables and not something inside the original code.
If I only had the option of running on my AIX box, I'd be a happy camper, but this is win32 only.
D
| [reply] |
No, that's not quite what I meant. You should be able to drop the handle, but I'm guessing that your code was written with the assumption that descriptors were shared rather than dup'd, so you only closed one, and not the other.
MeowChow
s aamecha.s a..a\u$&owag.print | [reply] |