[Mono-devel-list] Re: Mono-devel-list digest, Vol 1 #1571 - 11 msgs
Michael Rasmussen
mir at miras.org
Wed Mar 30 17:37:23 EST 2005
ons, 30 03 2005 kl. 16:12 -0500, skrev
> Message: 5
> Subject: Re: [Mono-devel-list] TLS: normal versus __thread
> From: Dick Porter <dick at ximian.com>
> To: mono-devel-list at lists.ximian.com
> Date: Wed, 30 Mar 2005 17:58:46 +0100
>
> On Thu, 2005-03-24 at 00:02 +0100, Michael Rasmussen wrote:
> > It apparently seems to course problems when using Mono.Posix.fork.
> > My self compiled version under Debian runs flawlessly while giving these
> > errors under Fedora Core and Suse:
> >
> > ** (svc.exe:670): WARNING **: : bogus daemon response, type 1
>
> Threading and fork() don't mix. Mono is threaded.
>
> If it works on Debian (I assume with linuxthreads not NPTL) that is just
> by luck.
>
> See http://bugzilla.ximian.com/show_bug.cgi?id=68141 for more of an
> explanation.
>
> - Dick
>
I have now installed a pristine Fedora core 3, which I presume is with
NPTL. On this I have installed a precompiled Mono 1.1.5 for Fedora core
3. All my test cases, including the one you are refering to, runs
smoothly on both Fedora and my Debian running 1.1.4.
The reason for this, in my opinion, is that the spawned child is getting
instantiated with the parents running environment and in than sense it
replicates the dup function from C with I believes is thread safe. See
documentation below.
/* my example */
Parent: Signing off!
Parent PID: 8740
loke:~/Projects/appserver/fork$ Client running as deamon with pid 8740
Server started
/* example from bugzilla */
loke:~/Projects/appserver/fork/fork-test$ sudo mono fork-test.exe
Starting fork test
loke:~/Projects/appserver/fork/fork-test$ Configuring...
Configured.
Trying telnet - remoting running on port 5605:
[mir at localhost fork-test]$ telnet localhost 5605
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael rasmussen cc
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E
mir datanom net
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C
mir miras org
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
[After hitting Jenny's boyfriend]
Forrest Gump: "Sorry I had a fight in the middle of your
Black Panther party"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dette er en digitalt underskrevet brevdel
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050331/cbf26fa7/attachment.bin
More information about the Mono-devel-list
mailing list