Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* vfork on Dec Alpha buggy?
@ 1996-12-18  5:00 Carsten Hammer
  1996-12-18  5:00 ` Ron Natalie
  1996-12-19  5:00 ` Burkhard Neidecker-Lutz
  0 siblings, 2 replies; 7+ messages in thread
From: Carsten Hammer @ 1996-12-18  5:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-12-21  5:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-18  5:00 vfork on Dec Alpha buggy? Carsten Hammer
1996-12-18  5:00 ` Ron Natalie
1996-12-18  5:00   ` Pierre Asselin
1996-12-19  5:00     ` T. Horsnell (tsh)
1996-12-19  5:00     ` Ron Natalie
1996-12-19  5:00 ` Burkhard Neidecker-Lutz
1996-12-21  5:00   ` Linus Torvalds

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