Permalink
Browse files

removed sigfault in nfdumpp

  • Loading branch information...
root
root committed Jan 4, 2017
1 parent e2d57c0 commit 18cd413c6876c78f509bd5c4875abc3ec379aa9b
Showing with 6 additions and 3 deletions.
  1. +3 −2 bin/nfdumpp.c
  2. +3 −1 src/lnf_ringbuf.c
View
@@ -119,9 +119,9 @@ int process_file(char *name, lnf_filter_t *filterp) {
}
if (shmread) {
- lnf_close(filep);
- } else {
lnf_ring_free(ringp);
+ } else {
+ lnf_close(filep);
}
@@ -380,6 +380,7 @@ int main(int argc, char **argv) {
}
}
+
for (o = 0; o < numoutputs; o++) {
if (o > 0 ) {
output_start(&output[o]);
View
@@ -40,10 +40,12 @@ int lnf_ring_lock(lnf_ring_t *ring) {
ring->stuck_counter++;
return retcode;
}
-
+
+/*
if (counter > 10 && counter % 100) {
printf("XXX STUCK %d\n", counter);
}
+*/
usleep(LNF_RING_BLOCK_USLEEP);
}

0 comments on commit 18cd413

Please sign in to comment.