Re: Bug in fork() while in a thread

2010-08-21 Thread Corinna Vinschen
On Aug 21 08:50, Jason Curl wrote: > Open Group Posix.1c-2004 mentions only a "signal stack" doesn't need to be > copied for XSI. > > Linux & FreeBSD 7.0 work OK. QNX641 returns ENOSYS if it even sniffs a thread > call. I haven't tested Solaris Sparc. > > Which standard is Cygwin "closest" to,

Re: Bug in fork() while in a thread

2010-08-21 Thread Jason Curl
Corinna Vinschen cygwin.com> writes: > On Aug 15 14:53, Christopher Faylor wrote: > > On Sun, Aug 15, 2010 at 07:42:01PM +0200, Jason Curl wrote: > > >Is it allowed to issue the fork() system call while not in the main > > >thread? When I read the OpenGroup specifications I don't seem to find >

Re: Bug in fork() while in a thread

2010-08-16 Thread Christopher Faylor
On Mon, Aug 16, 2010 at 11:05:52AM +0200, Corinna Vinschen wrote: >On Aug 15 14:53, Christopher Faylor wrote: >> On Sun, Aug 15, 2010 at 07:42:01PM +0200, Jason Curl wrote: >> >Is it allowed to issue the fork() system call while not in the main >> >thread? When I read the OpenGroup specifications

Re: Bug in fork() while in a thread

2010-08-16 Thread Corinna Vinschen
On Aug 15 14:53, Christopher Faylor wrote: > On Sun, Aug 15, 2010 at 07:42:01PM +0200, Jason Curl wrote: > >Is it allowed to issue the fork() system call while not in the main > >thread? When I read the OpenGroup specifications I don't seem to find > >anything against allowing this. > > > >In par

Re: Bug in fork() while in a thread

2010-08-15 Thread Jason Curl
On 15/08/2010 20:53, Christopher Faylor wrote: On Sun, Aug 15, 2010 at 07:42:01PM +0200, Jason Curl wrote: In particular, if I create a thread, then issue a fork(), data that exists on the stack is corrupted after the fork() is in the child. Using data on the heap doesn't show any issues (and is

Re: Bug in fork() while in a thread

2010-08-15 Thread Christopher Faylor
On Sun, Aug 15, 2010 at 07:42:01PM +0200, Jason Curl wrote: >Is it allowed to issue the fork() system call while not in the main >thread? When I read the OpenGroup specifications I don't seem to find >anything against allowing this. > >In particular, if I create a thread, then issue a fork(), dat