>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 compilers I get: Child Process: Global variable: 3 Stack variable: 21 Parent Process: Global variable: 3 Stack variable: 21 Which compilers did you use? (Compilers need to know how to handle vfork() they may optimize incorrectly) Casper _______________________________________________ opensolaris-discuss mailing list [email protected]
