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


As an Amazon Associate we earn from qualifying purchases.

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-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.