~poelzi/ulatencyd/master

« back to all changes in this revision

Viewing changes to src/ulatencyd.c

  • Committer: Daniel Poelzleithner
  • Date: 2013-06-12 19:53:51 UTC
  • Revision ID: git-v1:32d8eae3243e9f114652164f86579893b0007966
remove last traces of libcgroup support

Show diffs side-by-side

added added

removed removed

Lines of Context:
600
600
  main_context = g_main_context_default();
601
601
  main_loop = g_main_loop_new(main_context, FALSE);
602
602
 
603
 
#if LIBCGROUP
604
 
  if(cgroup_init()) {
605
 
    g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "could not init libcgroup. try mounting cgroups...");
606
 
    g_mkdir_with_parents(mount_point, 0755);
607
 
    if(!mount_cgroups() || cgroup_init()) {
608
 
#ifdef DEVELOP_MODE
609
 
      g_log(G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, "give up init libcgroup");
610
 
      //g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "give up init libcgroup");
611
 
#else
612
 
      g_log(G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, "give up init libcgroup");
613
 
#endif
614
 
    }
615
 
  }
616
 
#else
617
 
  //mount_cgroups();
618
 
#endif
619
 
 
620
603
  atexit(cleanup);
621
604
 
622
605
  if (signal (SIGABRT, signal_handler) == SIG_IGN) //suspend