your C is bad I think.
You do this:
if (x=vfork() < 0)
that is _not_ what you mean
you mean:
if ((x=vfork()) < 0)
there is a huge difference...
:)
Robert Hyatt Computer and Information Sciences
[EMAIL PROTECTED] University of Alabama at Birmingham
(205) 934-2213 115A Campbell Hall, UAB Station
(205) 934-5473 FAX Birmingham, AL 35294-1170
On Fri, 6 Aug 1999, Mariusz W Stanisz wrote:
> This is a problem with using vfork in my simple program. After i run my
> program and tell it to execlp a command it does it but most off the time i
> get a race condition, and always execlp executes on both child and on the
> parent.
> help please.
> my simple program is the attachmnt
>
>
>
>
>
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]