Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 1998 22:15:40 -0500 (EST)
From:      Brian Feldman <green@unixhelp.org>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: linux_clone news 
Message-ID:  <Pine.BSF.4.05.9811032214310.5761-100000@zone.syracuse.net>
In-Reply-To: <199811040310.LAA27286@spinner.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
I think that this patch should be committed for now, since it does add a
working system call.... okay, maybe not. I'll work on this signal things,
I've got linuxthreads code lying here to look at (lotsa junk with USR1 and
USR2 :(

Cheers,
Brian Feldman

On Wed, 4 Nov 1998, Peter Wemm wrote:

> Brian Feldman wrote:
> > Linux_clone() works! Or at least it seems to work correctly now. I have
> > a proper patchset now as well, attached at the end of this message. Bad
> > news: linuxthreads still does not work right. Altho I seem to have
> > corrected and redone the inaccurate parts of my code (thanks SO MUCH
> > Luoqi, you were really key in helping me here :), there seems to be some
> > kind of spinning pthread_create(). If anyone would like to apply my Linux
> > emulation patches, download LinuxThreads, and work on helping the state of
> > FreeBSD's Linux emulation out here, please do!
> 
> I think the bit that is going to bite you is the lack of support for 
> sharing the signal handlers.  linuxthreads uses signals for internal 
> management from memory.  With the emulated clone(), a child changing it's 
> signal handler will not change the global vectors, and things could get 
> upset.
> 
> It might be possible to implement a bit more glue in the rfork() code and
> child management so that rfork children can set their p_sigacts to a common
> shared vector.  This would have to malloced rather than in the UPAGES
> because the implications of a swapout of the leader would be devastating.
> 
> > Cheers,
> > Brian Feldman
> 
> Cheers,
> -Peter
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811032214310.5761-100000>