Hi.


I'm using APR as portability library for my program.
I'm accepting a network connection in the parent and later I spawn a
child process passing the OS file descriptor (e.g. 4) to the child
process.

I construct an apr socket in the child process from the passed file
descriptor number (e.g. 4). Later when I try to get a remote address, I'm
getting an error that the given file descriptor is not a socket. I'm also
unable to write to the mentioned socket (no data arives to the client).

The same program is working fine on Linux. So I guess that there is a
strange 'trick' how to make file descriptor inheriting work. Any hint?


Thanks and best regards,
Dezo


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].