Nicholas Clark wrote:
On Wed, Nov 10, 2004 at 05:13:33PM +0200, gumbold wrote:
From pp_sys.c :
#HAS_FORK
calling PerlProc_fork(), which is my_fork() on
non-IMPLICIT system
#else
# ifdef threads or implicit system
calling PerlProc_fork(), which is my_fork() on
non-IMPLICIT system
# else
die
# endif
#endif
By this logic if have no fork and no threads, so pp_fork() would DIE?
Yes. It's acceptable for perl's fork operator not to work on a given
platform's perl port
If so, the ithreads (i am new to perl, so may be have to call it just
threads. i mean, not 5005threads) could be configured.
The problem is that implementation of ithreads also calling
Perl_my_fork(), where no thread flow without HAS_FORK?
This is beyond my knowledge of how things work, so I'm afraid I can't really
help you further in working out how to make this work.
What platform are you porting to?
Nicholas Clark
It is porting on embedded Linux w/o MMU.
I am asking cause you told about configuration option of using vfork.
Does it change usage of fork() to vfork()?