Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: chammer@hrz.uni-bielefeld.de (Carsten Hammer)
Subject: vfork on Dec Alpha buggy?
Date: 1996/12/18	[thread overview]
Message-ID: <E2M7CL.4q3@hermes.hrz.uni-bielefeld.de> (raw)


This gives 6 but should give 7, not?

#include <sys/types.h>
#include <stdio.h>
int glob=6;
int main(void)
{
pid_t pid;
if((pid=vfork())<0)fprintf(stderr,"vfork error");
else if (pid==0){
glob++;
_exit(0);
}
printf("glob=%d\n",glob);
}

For Reference look at Richard W. Stevens 'Advanced Programming in the Unix
Environment'

Did i make a mistake?
I need it to compute processing times...
ciao
Carsten
--
Carsten Hammer Schwindstr. 7 33615 Bielefeld
       chammer@POST.uni-bielefeld.de
       chammer@d2hammer.physik.uni-bielefeld.de



             reply	other threads:[~1996-12-18  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-18  5:00 Carsten Hammer [this message]
1996-12-18  5:00 ` vfork on Dec Alpha buggy? Ron Natalie
1996-12-18  5:00   ` Pierre Asselin
1996-12-19  5:00     ` Ron Natalie
1996-12-19  5:00     ` T. Horsnell (tsh)
1996-12-19  5:00 ` Burkhard Neidecker-Lutz
1996-12-21  5:00   ` Linus Torvalds
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox