From 78befac2ed9d506d569f0f7fb6123e4a6831c522 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 13 Jun 2008 22:09:12 +0000 Subject: [PATCH] Now where'd this file come from. --- inotify_stubs.o | Bin 2836 -> 0 bytes tests/vsys_conctest.c | 13 ++++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 inotify_stubs.o diff --git a/inotify_stubs.o b/inotify_stubs.o deleted file mode 100644 index 714490f7146451eac7b875264806dbb148c5b635..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2836 zcmb7GU1%It6#iy+8n>F*q%CR<;ug0hrF1ZDMAQdkl50R}DK;xeh}+3#(=5*Jgxwq4 zh+s>sco_!zEENQc_~3&NRjO2sG_rjVv?5q=#UKepy3iDY`!l;cLe&Gi=YHp$ zIX~aMduQKbN1wMW3q~v?(L}(Stvmx#^`R5nO{kRYmAwGO>cqA1b24Pb>dPnke+gM? zp)o7i^^jc+o*;){7ejV2$fiCd6tWG$J`UNsV4sAnA?B{u*b>#Pu|=geD6GaVDfB^7 zruekR)|H__Do6-c4~A^PmV=>`U@O5;r(kPW$akyfLdf@HII!QROy?K*Gw0bdzumtm zMlyEI&Ln8MzqYov!m(a!Sg?lZ4zlY3Yl!1EeY5rG(YbGHc7}+M@jSjHA? zL)aN*W$TnUU>ggIcGI|GmXR}MECE{!M_@&c&Zc8SNX{0PX2)MO%!Xgn99gk?Vxch* zvU>0cVa;Yru(gnN3f2f%rN_yhq3c3rho%uknd%H9JEo z7oL@ZC9W^sfoXB2!OfTwW z>G{9t9n<}cgzRRVgq4udtf_#d#Kg@STUIR8N!{2KM>EmZ4Dww8+cafI#wVyQQSg{4 zE6aHpn>#m{puJzez6m4Z8Um)=PJcYo9s zwMZGm%DH#t5rA^p8!SoJN*X2$@`^Jq0HfweO_=zk7W;4xto7YHuYcRQ9W~q4yG~o z(jnF&_Xt2Q&~_7UYzNX7aBqyWeHxn-XOqBjldOfJgZd1ZxF5_yi@t{OxXyQ2+bPbh zNoc?5^Q_i%SV+<~FrwEI>-DIPGcsiZ@)poSxk#vIvnF}hG^EA&=ttYyI>ntdK`l8b z-tr6;cGZPS)71$d@dOTM_Yguup~tyX{g8;K4IY@{zD>@BI zlGp}$IYzw1pEsw+#M7_4DM{Rer!=JVvJ)0w(({g43ZH6*OCHX|u!!OJV)&yNrkC@q z1 #include #include +#include int main() { FILE *fp = NULL, *fp_in = NULL; FILE *out_fp = NULL, *diff_fp = NULL; - const char* topcmd = "/vservers/pl_netflow/vsys/test.out"; - const char* top_in_file = "/vservers/pl_netflow/vsys/test.in"; + const char* topcmd = "feg/test.out"; + const char* top_in_file = "feg/test.in"; char buf[4096]; int fd_in = -1, fd_out; int res; @@ -19,17 +20,18 @@ int main() int count = 1; struct timeval tv={.tv_sec=5,.tv_usec=0}; - while (count < 100) { + while (count < 10000) { fd_set readSet; int res; int nlines=0; - printf("(.)", count); + printf("(%d)", count); if ((fd_out = open(topcmd, O_RDONLY | O_NONBLOCK)) < 0) { fprintf(stderr, "error executing top\n"); exit(-1); } + if ((fd_in = open(top_in_file, O_WRONLY)) < 0) { fprintf(stderr, "error opening %s\n", top_in_file); exit(-1); @@ -45,7 +47,7 @@ int main() res = select(fd_out + 1, &readSet, NULL, NULL, &tv); if (res < 1) { - printf("select failed\n"); + printf("select failed: %d,%s\n",fd_out,strerror(errno)); exit(-1); } @@ -98,6 +100,7 @@ int main() pclose (diff_fp); fclose(fp); close(fd_in); + close(fd_out); count++; } printf("test successful.\n"); -- 2.47.0