From owner-cvs-all Sat Sep 19 02:46:06 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA17161 for cvs-all-outgoing; Sat, 19 Sep 1998 02:46:06 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA17153; Sat, 19 Sep 1998 02:46:05 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA23139; Sat, 19 Sep 1998 02:45:42 -0700 (PDT) Date: Sat, 19 Sep 1998 02:45:42 -0700 (PDT) Message-Id: <199809190945.CAA23139@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/script script.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk des 1998/09/19 02:45:42 PDT Modified files: usr.bin/script script.c Log: Fix the following bugs: - if a command was specified and script(1) failed to execute it, it would print the name of your shell in the error message instead of that of the command that failed. - since finish() was installed as a SIGCHLD handler, it would often run before the main loop had had time to process the last few bytes of output. This resulted in very strange truncated error messages. - script(1) would almost always return with an exit status of 0, even if the command returned a non-zero exit status. This broke my 'build world, install it and rebuild the kernel' scripts because 'make installworld' would run even if 'make buildworld' had failed. Revision Changes Path 1.9 +27 -19 src/usr.bin/script/script.c