Changeset 767 for trunk/xcache.c

Show
Ignore:
Timestamp:
04/18/2011 09:16:12 AM (2 years ago)
Author:
moo
Message:

check return value to avoid gcc warning

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r764 r767  
    31563156    xcache_restore_signal_handler(); 
    31573157    if (xc_coredump_dir && xc_coredump_dir[0]) { 
    3158         chdir(xc_coredump_dir); 
     3158        if (chdir(xc_coredump_dir) != 0) { 
     3159            /* error, but nothing can do about it 
     3160             * and should'nt print anything which might SEGV again */ 
     3161        } 
    31593162    } 
    31603163    raise(sig);