Changeset 691:78b665400097 in freeDiameter for libfdcore/core.c
- Timestamp:
- Jan 20, 2011, 7:44:27 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/core.c
r689 r691 241 241 int fd_core_waitstartcomplete(void) 242 242 { 243 int ret = 0; 244 243 245 TRACE_ENTRY(""); 244 246 … … 246 248 pthread_cleanup_push( fd_cleanup_mutex, &is_ready_mtx ); 247 249 248 while (! is_ready) {249 CHECK_POSIX ( pthread_cond_wait( &is_ready_cnd, &is_ready_mtx ));250 while (!ret && !is_ready) { 251 CHECK_POSIX_DO( ret = pthread_cond_wait( &is_ready_cnd, &is_ready_mtx ), ); 250 252 } 251 253 … … 253 255 CHECK_POSIX( pthread_mutex_unlock( &is_ready_mtx ) ); 254 256 255 return 0;257 return ret; 256 258 } 257 259
Note: See TracChangeset
for help on using the changeset viewer.