/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* close a coshell
*/
#include "colib.h"
/*
* called when coshell is hung
*/
static void
{
}
/*
* shut down one coshell
*/
static int
{
int n;
int status;
{
n = alarm(3);
status = -1;
alarm(n);
}
else
status = 0;
errormsg(state.lib, 2, "coshell %d jobs %d user %s sys %s", co->index, co->total, fmtelapsed(co->user, CO_QUANT), fmtelapsed(co->sys, CO_QUANT));
{
}
ps = 0;
while (cs)
{
{
if (ps)
else
break;
}
}
return status;
}
/*
* close coshell co
*/
int
{
if (co)
return 0;
}