Changeset 89242


Ignore:
Timestamp:
Jan 21, 2012, 11:18:56 PM (9 years ago)
Author:
raimue@…
Message:

daemondo:
Found with clang analyzer: "Value stored to 'status' is never read"
Write a log message if mach_msg_send fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/programs/daemondo/main.c

    r54794 r89242  
    922922   
    923923    mach_msg_return_t status = mach_msg_send(&header);
    924     status = 0;
     924    if (status != 0) {
     925        LogMessage("mach_msg_send failed in handle_child_signal!\n");
     926    }
    925927}
    926928
     
    940942   
    941943    mach_msg_return_t status = mach_msg_send(&header);
    942     status = 0;
     944    if (status != 0) {
     945        LogMessage("mach_msg_send failed in handle_generic_signal!\n");
     946    }
    943947}
    944948
Note: See TracChangeset for help on using the changeset viewer.