Re: [osol-discuss] Re: vfork issues

2007-01-01 Thread Roland Mainz
Felix Schulte wrote: On 12/20/06, Felix Schulte [EMAIL PROTECTED] wrote: On 12/19/06, Richard L. Hamilton [EMAIL PROTECTED] wrote: That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is

Re: [osol-discuss] Re: vfork issues

2007-01-01 Thread Roland Mainz
Felix Schulte wrote: On 12/19/06, Richard L. Hamilton [EMAIL PROTECTED] wrote: That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is deprecated. Its sole legitimate use as a prelude to an

Re: [osol-discuss] Re: vfork issues

2006-12-27 Thread Felix Schulte
On 12/20/06, Felix Schulte [EMAIL PROTECTED] wrote: On 12/19/06, Richard L. Hamilton [EMAIL PROTECTED] wrote: That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is deprecated. Its sole legitimate

Re: [osol-discuss] Re: vfork issues

2006-12-20 Thread Felix Schulte
On 12/19/06, Richard L. Hamilton [EMAIL PROTECTED] wrote: That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is deprecated. Its sole legitimate use as a prelude to an immediate call to a function

Re: [osol-discuss] Re: vfork issues

2006-12-20 Thread James Carlson
Felix Schulte writes: Read http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2006-October/001587.html and following posts posix_spawn(3C) is broken in Solaris 11/10 and I would not use it to use until Sun fixes this and ports the fix back to older Solaris versions I think

Re: [osol-discuss] Re: vfork issues

2006-12-20 Thread Casper . Dik
On 12/19/06, Richard L. Hamilton [EMAIL PROTECTED] wrote: That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is deprecated. Its sole legitimate use as a prelude to an immediate call to a function

Re: [osol-discuss] Re: vfork issues

2006-12-19 Thread Casper . Dik
Well, since I do not have open solaris setup to test this I used 5.8, might be it behave the same in open source as well...then its justified to post it here :) Anyway, below is my code (As an experiment I did this in linux and result matched my expectation) On SPARC with Sun Studio

[osol-discuss] Re: vfork issues

2006-12-19 Thread Richard L. Hamilton
Well, on Solaris 8 (SunOS 5.8) SPARC, and using either Studio 11 or an old egcs 2.91.66 version of g++, I'm getting Child Process: Global variable: 3 Stack variable: 21 Parent Process: Global variable: 3 Stack variable: 21 which is what I'd expect. I did retype rather than cutpaste, but I

[osol-discuss] Re: vfork issues

2006-12-19 Thread Akhilesh Mritunjai
Hi From my experiences from POSIX compliant QNX6 OS, the behaviour of vfork() is described as follows (paraphrased): In a multithreaded program using POSIX pthread libraries, the behaviour is undefined when one uses fork(). The reason is since the address space is shared, both processes are

[osol-discuss] Re: vfork issues

2006-12-18 Thread Richard L. Hamilton
That's not something one is supposed to take advantage of! From vfork(2) (albeit admittedly the SX version of the man page): The vfork() function is deprecated. Its sole legitimate use as a prelude to an immediate call to a function from the exec family can be achieved safely by posix_spawn(3C)

[osol-discuss] Re: vfork issues

2006-12-18 Thread Abhijit
Well, since I do not have open solaris setup to test this I used 5.8, might be it behave the same in open source as well...then its justified to post it here :) Anyway, below is my code (As an experiment I did this in linux and result matched my expectation) #include iostream #include string

[osol-discuss] Re: vfork issues

2006-12-18 Thread Abhijit
You are not expecting to have both of them run concurrently, right? No, the child exits and then parent takes up. Pl. review the sample code I posted. ~Thanx This message posted from opensolaris.org ___ opensolaris-discuss mailing list