Raise SystemExit instead of calling goaway().
This commit is contained in:
parent
5afc74757b
commit
6a468bf71c
|
@ -96,12 +96,9 @@ sys_exit(self, args)
|
||||||
object *self;
|
object *self;
|
||||||
object *args;
|
object *args;
|
||||||
{
|
{
|
||||||
int sts;
|
/* Raise SystemExit so callers may catch it or clean up. */
|
||||||
if (!getintarg(args, &sts))
|
err_setval(SystemExit, args);
|
||||||
return NULL;
|
return NULL;
|
||||||
goaway(sts);
|
|
||||||
exit(sts); /* Just in case */
|
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct methodlist sys_methods[] = {
|
static struct methodlist sys_methods[] = {
|
||||||
|
|
Loading…
Reference in New Issue