• Travis Cross's avatar
    Handle too-short write(3)s in mod_json_cdr · 3bd9c60f
    Travis Cross 提交于
    write(3) can write fewer bytes than was requested for any number of
    reasons.  The correct behavior is to retry unless there is an error.
    
    If there is an error, try to unlink the file; no sense in leaving
    corrupted data laying around.
    3bd9c60f
mod_json_cdr.c 22.2 KB