Re: fork() Problem?

Kurt Garloff (garloff@suse.de)
Wed, 5 May 1999 22:57:35 +0200


--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, May 05, 1999 at 04:41:57PM -0400, Richard B. Johnson wrote:
> Not so. Your first instance tested if the assignment succeeded.=20

No! You test for the return value of the assignment which is the assigned
value, no an indication whether the assignment was successful or not. (How
could it be unsuccessful, BTW?)
Or is C that different from C++ ???

What you probably mean is that=20

if (<expression having a int or a pointer as result>)

is not defined.

I don't if it this, but hundreds of

if (err) statements would be wrong and should be recoded to
if (err !=3D 0)
=20
Regards,
--=20
Kurt Garloff <garloff@suse.de> SuSE GmbH, N=FCrnberg, FRG
Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974)

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in

iQCVAwUBNzCwvxaQN/7O/JIVAQFnKQP9GYxAkG/1pN5o/AIKHHRdBVZsuJJn+87r
PfidCoJ0ajZgiWzug+6LlmAYsiU29PFs0Pw4zMUXBhxo6YucVSvvvUK/q90r08BZ
kOuzYqVT2vxnLG2aFIfRuKomoRWg0Aup4YvBsl8upYSoYthYYYFQb0OV1I7+sA3y
sBoaizd7RYM=
=qq3p
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/