|
It's hard to tell what the issue may be without knowing more details. Here are couple of IBM links that illustrate socket inheritance between processes: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/info/rzab6/rzab 6xdescriptors.htm http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/info/rzab6/rzab 6designrec.htm Elvis -----Original Message----- Subject: [C400-L] Inheriting socket in spawned child proces??? 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 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.