Ignore:
Timestamp:
Apr 13, 2015 12:14:02 PM (9 years ago)
Author:
nanang
Message:

Re #1842: Updated pjsua app to avoid stdout buffering, and also adjusted python tests accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c

    r4868 r5065  
    212212    puts  (""); 
    213213 
     214    fflush(stdout); 
     215} 
     216 
     217static void log_writer_nobuf(int level, const char *buffer, int len) 
     218{ 
     219    pj_log_write(level, buffer, len); 
    214220    fflush(stdout); 
    215221} 
     
    12521258        case OPT_STDOUT_NO_BUF: 
    12531259            setvbuf(stdout, NULL, _IONBF, 0); 
     1260            cfg->log_cfg.cb = &log_writer_nobuf; 
    12541261            break; 
    12551262#endif 
Note: See TracChangeset for help on using the changeset viewer.