shutdown_test.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1998-2001, 2004, 2007, 2011, 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: shutdown_test.c,v 1.25 2011/08/28 23:46:41 tbox Exp $ */
#include <config.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
isc_task_t * task;
isc_timer_t * timer;
unsigned int ticks;
char name[16];
isc_task_t * peer;
} t_info;
#define MAX_TASKS 3
static unsigned int task_count;
static isc_taskmgr_t * task_manager;
static isc_timermgr_t * timer_manager;
static void
}
static void
}
static void
sizeof(*event));
}
}
static void
}
static void
t1_shutdown, &tasks[0],
sizeof(*event));
}
sizeof(*event));
}
}
static t_info *
} else
task_count++;
return (ti);
}
int
unsigned int workers;
if (argc > 1) {
if (workers < 1)
workers = 1;
if (workers > 8192)
workers = 8192;
} else
workers = 2;
/*
* Test run-triggered shutdown.
*/
/*
* Test implicit shutdown.
*/
/*
* Test anti-zombie code.
*/
printf("Statistics for mctx:\n");
printf("Statistics for mctx2:\n");
return (0);
}