I serached but found no answer,
why does a simple fork and an following execlp call does not work
if threads are activ
switch ( pid = fork() ) {
case -1: printf("fork errori\n");
break;
case 0: /* this is the son process */
execlp("xterm", (char *) 0); /* test for exec failed if
threads are active
with no threads all OK */
_exit(0); /* should never reach */
default:
printf("I am the father \n");
}
Is for this problem a vfork or _clone neccesary
Thanks for help
günther
--
R=I+S Rapp Informatik Systeme GmbH
Rosenbühlstr. 24
D-89182 Bernstadt
Tel: +49 (0)7348-7755
Fax: +49 (0)7348-6086
E-MAIL mailto: guenther rapp-informatik de
WEB www.rapp-informatik.deAttachment:
guenther.vcf
Description: Card for günther