]> mj.ucw.cz Git - moe.git/blobdiff - box/box.c
Minor fix in log, extend default config
[moe.git] / box / box.c
index b4f47ef05300c96b0c7aba4ca2555ceb93475cb0..892cc53eb9b8bee98fb369f7b4e8810a342375ad 100644 (file)
--- a/box/box.c
+++ b/box/box.c
@@ -830,23 +830,27 @@ sample_mem_peak(void)
 static void
 boxkeeper(void)
 {
-  int syscall_count = 0;
+  int syscall_count = (filter_syscalls ? 0 : 1);
   struct sigaction sa;
 
   is_ptraced = 1;
+
   bzero(&sa, sizeof(sa));
   sa.sa_handler = signal_int;
   sigaction(SIGINT, &sa, NULL);
+
   gettimeofday(&start_time, NULL);
   ticks_per_sec = sysconf(_SC_CLK_TCK);
   if (ticks_per_sec <= 0)
     die("Invalid ticks_per_sec!");
+
   if (timeout || wall_timeout)
     {
       sa.sa_handler = signal_alarm;
       sigaction(SIGALRM, &sa, NULL);
       alarm(1);
     }
+
   for(;;)
     {
       struct rusage rus;