Re: Forking wiht zvterm
- From: Havoc Pennington <hp redhat com>
- To: Hilaire Fernandes <hilaire ofset org>
- Cc: gnome-devel-list gnome org
- Subject: Re: Forking wiht zvterm
- Date: 02 Aug 2000 14:26:47 -0400
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]