Date: Tue, 23 Oct 2001 11:15:38 -0400 From: Matt Spong <spong@baked.net> To: Cliff Sarginson <cliff@raggedclown.net> Cc: Giorgos Keramidas <charon@labs.gr>, Matthew Blacklow <matthew.blacklow@ticca.com>, freebsd-questions <freebsd-questions@FreeBSD.ORG> Subject: Re: C clue on FreeBSD again! Message-ID: <20011023111538.A26176@Moebius.baked.net> In-Reply-To: <E15w0wL-000MAg-00@post.mail.nl.demon.net> References: <E15w0wL-000MAg-00@post.mail.nl.demon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > The return value from "system" won't be of much use to you, it will > only indicate if the "system" call managed to successfully exec the > program you asked it to.=20 No, system() returns -1 if fork() failed, 127 if executing the shell failed, and the return value of the process otherwise. > Actually, "system" is also a highly > unportable thing to use, if that is of any importance to you. True. But this is how it works on both FreeBSD and Linux. Matt --=20 Matt Spong || spong@baked.net || AIM: Spong1027 || http://www.forkbomb.net "Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one." -Benjamin Franklin --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE71YmZ9cWdso9liPMRArFYAJ9rPJ0gLBWppDwA5lTWMhxOO/BrCwCeJ+0O wVZcHjRZSsQtNxJPpAU+kgA= =pHZ2 -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011023111538.A26176>