Changeset d11edc6485c8548e151e2b14ca904c22cefb5fa3

Show
Ignore:
Timestamp:
02/21/11 16:52:05 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1298307125 +0000
git-parent:

[e63a8ea611819efb4ba56ce05009e11c511548db]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1298307125 +0000
Message:

system is declared with warn_unused_result, so we need to pretend here

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_watchdog.c

    r379bcaf rd11edc6  
    104104 
    105105void glideme(int sig) { 
    106   char cmd[1024]
     106  char cmd[1024], unused
    107107  signal(sig, SIG_DFL); 
    108108  snprintf(cmd, sizeof(cmd), "%s %d > %s/%s.%d.trc", 
    109109           glider_path, noit_monitored_child_pid, 
    110110           trace_dir, appname, noit_monitored_child_pid); 
    111   system(cmd); 
     111  unused = system(cmd); 
    112112  kill(noit_monitored_child_pid, sig); 
    113113}