Fork/Exec (Was: Re: [omniORB] Python 2, FreeBSD 4, omniORBpy, core dump)

Sandro Tolaini tolaini@libero.it
Mon, 12 Feb 2001 15:58:22 +0100


> I'm trying out omniORBpy on FreeBSD 4.0 with Python 2.0 and am getting
> core dumps with the echo server example:

The same is happening here... Does someone have a fix? :)

Another question about OmniORB on multiple platforms: I need to do a
fork/exec in a method. It seems that not closing all the file descriptors
(except for cerr,cin, cout) in the child process after fork() but before
exec() results in a general mess (i.e. the client who called the method that
did the fork/exec dies with an unexpected exception). Now I close all the
file descriptors by looking into the /proc/self/fd dir, but this holds only
for Linux. Is there a better way to do that? All the fd have the
CLOSE_ON_EXEC flag set, but it does not work as expected.

Cheers,
  Sandro.