Forum Discussion
Altera_Forum
Honored Contributor
20 years agouse of vfork() instead of fork() in uClinux
Hi all,
I ported pppd from busybox on the Nios2. Actually, I just did two things : - add the -Wl,-elf2flt linker flags to convert the binary file - changed calls to fork() by vfork() It seems everything goes right, but I wonder if it is authorized to use vfork() instead of fork() ? Do I risk anything by doing this ? Do I have to expect pppd to crash, or is it completely safe ? Thanks for any comments, Regards Pod1 Reply
- Altera_Forum
Honored Contributor
You aren't supposed to change all of hte calls manually in the source code.. you can add a compile flag -Dfork=vfork ... or something like that (look at the compile for busybox). That will automatically change them for you. But it should be safe doing this, in most instances..