Re: Forking wiht zvterm



Hilaire Fernandes <hilaire@ofset.org> writes:  
>  if (zvt_term_forkpty (ZVT_TERM (term), 0) == -1)
>    {
>      perror ("Error forking");
>      exit (1);
>    }
>  
>  if (execlp ("python", NULL, env_copy) == -1){
>    perror ("Error calling execlp");
>    exit(1);
>  }
>  

You are exec'ing python in both parent and child; read a UNIX book
about fork(), zvt_term_forkpty() works the same way.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]