tx guys my problem was the if statement, tx again =).
On Fri, 6 Aug 1999, Tim Wright wrote:
> Not Linux related either. This is a classic C programming error.
> Use parentheses.
>
> If you say
> if (running_ps = vfork() < 0) {
> What you are really saying is
> if (running_ps = (vfork() < 0)) {
> which is not what you want.
>
> There's a simple rule that saves you from this kind of blunder.
> Don't rely on the operator precedences. Always fully parenthesize expressions.
> The compiler generate the same code regardless, and at least it's then clear
> what you were trying to achieve :-)
>
> Tim
>
> --
> Tim Wright | Aracnet -- Portland's loudest electrons
> [EMAIL PROTECTED] OR | Ring +1 503 626.6873 V.90 (56K) 24hrs
> [EMAIL PROTECTED] | Browse http://www.aracnet.com for info!
> "Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI
>
>
> -
> Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
> To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
>
,-~~-.____. Snoopy Express
/ ()=(() \
( ( O
Try my icq \._\, ,----'
7040202 ##XXXxxxxxxx
/ ---'~;
/ /~|-
=( ~~ |
/~~~~~~~~~~~~~~~~~~~~~\
/_______________________\
/_________________________\
/___________________________\
/_____________________________\
| |
|-------------------------|
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]