This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is there any reason to use vfork() ?



Hi,

I use GCC to some restricted environment.
When I run gcc, it freezes up on this line[1]. When I replace the 'vfork()' on the 'fork()' the compilation succeeds. I haven't found any other adverse events.

I'm curious whether there is reason to use 'vfork()' rather than 'fork()'?

Thanks.


[1] https://gcc.gnu.org/viewcvs/gcc/trunk/libiberty/pex-unix.c?view=markup#l613


manpages:
http://linux.die.net/man/2/fork
http://linux.die.net/man/3/vfork

--
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]