/*
 * Program:        stopafter.c.
 * Version:        1.2.5
 * Author:         lilo@linpeople.org.
 * Date written:   27 July 1996.
 * Last modified:  4 December 1996.
 *
 * Description     Run a command, killing it with a SIGHUP after a
 *                 specified amount of time.  Forks a child process to
 *                 kill the parent process and any children if still
 *                 present.
 *
 * Bugs            Might need better parsing.  Also, stopafter has no
 *                 obvious way to know the parent has terminated if
 *                 called from inside a $() or `` construct, so it has
 *                 to time out before the construct is allowed to
 *                 terminate.  Also, the dialogue is way too
 *                 melodramatic.
 *
 * Copyright       (c) 1996 by lilo <lilo@linpeople.org>.  All rights
 * and             reserved.
 * license
 * information     This program is free software; you can redistribute
 *                 it and/or modify it under the terms of version 2 of
 *                 the GNU General Public License as published by the
 *                 Free Software Foundation.
 *
 *                 This program is distributed in the hope that it
 *                 will be useful, but WITHOUT ANY WARRANTY; without
 *                 even the implied warranty of MERCHANTABILITY or
 *                 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *                 General Public License for more details.
 *
 *                 You should have received a copy of version 2 of the
 *                 GNU General Public License along with this program;
 *                 if not, it should be available at one of the two
 *                 following URL locations:
 *
 *                 ftp://ftp.linpeople.org/pub/LICENSE/COPYING-2.0
 *                 ftp://prep.ai.mit.edu/pub/gnu/COPYING-2.0
 *
 *                 Otherwise write to the Free Software Foundation,
 *                 Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
 * Make sure we get POSIX function, superseded by BSD function.
 */

