Re: Way cool
- From: "Bill Cunningham" <nospam@xxxxxxxxx>
- Date: Wed, 23 Apr 2008 20:16:15 GMT
What numbers change? The first printf prints an uninitialized local
variable. On my system (Kubuntu 7.10), this just prints 0, but on other
systems it may print any other value, and as this doesn't change until the
next printf, this also prints 0, the fact that it's done in the child
doesn't matter.
The pid is nowhere output.
It segfaults at the end (unless it's run by gdb ;-) This is because the
child returns first rather than _exit(2)s (from man vfork):
"The child must not return from the current function or call exit(3), but
may call _exit(2)."
Josef
I get about 7 changing digits the number 1073 which stays the same and
"transaction "commencing or something like that. Hum I thought it might be
the same everywhere.
Bill
.
- Follow-Ups:
- Re: Way cool
- From: Josef Moellers
- Re: Way cool
- References:
- Way cool
- From: Bill Cunningham
- Re: Way cool
- From: Josef Moellers
- Way cool
- Prev by Date: Is it possible to get 100microsecond timer resolution using the CPU TSC?
- Next by Date: China Karaoke Mics - Wholesale Karaoke Mics Manufacturer
- Previous by thread: Re: Way cool
- Next by thread: Re: Way cool
- Index(es):