2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2012-03-24 14:06:46 -04:00
|
|
|
* Copyright 2007, 2011 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#include "mdef.h"
|
|
|
|
|
|
|
|
#include "gtm_stdio.h"
|
|
|
|
|
|
|
|
#include "gtmimagename.h"
|
|
|
|
#include "sockint_stats.h"
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
GBLREF int process_id;
|
|
|
|
GBLREF int socketus_interruptus;
|
2012-02-05 11:35:58 -05:00
|
|
|
|
|
|
|
/* Print stats on how many times socket processing was interrupted by mupip interrupt. Note
|
2012-03-24 14:06:46 -04:00
|
|
|
* that this routine stands alone so that inclusion of it in mupip, lke, etc by print_exit_stats()
|
|
|
|
* doesn't pull in all the socket code plus its dependencies..
|
|
|
|
*/
|
2012-02-05 11:35:58 -05:00
|
|
|
void sockint_stats(void)
|
|
|
|
{
|
|
|
|
if (IS_GTM_IMAGE) /* Only give these stats for GTM/MUMPS image */
|
|
|
|
FPRINTF(stderr, "Socket read/wait for process %d was interrupted %d times\n", process_id, socketus_interruptus);
|
|
|
|
}
|