Re: Something screwy when Evolution Shell invokes bonobo_activation_active_server_unregister()

Tor Lillqvist <[email protected]>
Newsgroups gmane.comp.gnome.evolution.devel
Message-ID <1150670308.6064.12.camel__17686.4266083159$1150701414$gmane$org@pettson>
må 2006-06-19 klockan 00:18 +0300 skrev Tor Lillqvist:

>I think it is possible to get the same effect as FD_CLOEXEC, though, by
> duplicating the socket using DuplicateHandle() to be non-inheritable,
> closing the original, and using the duplicated socket instead. Will have
> to try.

Indeed, works like a charm. I am a bit embarrassed now, though, that I
so lightly had just ifdeffified the code in ORBit2 that does FD_CLOEXEC
on the sockets, without really thinking what consequences there might be
on Windows when sockets get inherited. Oh well.

Luckily there doesn't seem to be that many uses of FD_CLOEXEC in the
GNOME libs that I have ported, or Evo. Most of them are in code for
functionality that is ifdeffed out for Windows completely anyway.

--tml


_______________________________________________
Evolution-hackers mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.