Changeset 257feec in mainline for uspace/srv/net/dnsrsrv/transport.c
- Timestamp:
- 2013-06-27T12:48:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f391e9
- Parents:
- 679ee84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/transport.c
r679ee84 r257feec 208 208 if (rc != EOK) 209 209 goto error; 210 210 211 211 treq = treq_create(req); 212 212 if (treq == NULL) { … … 214 214 goto error; 215 215 } 216 217 216 218 217 fibril_mutex_lock(&treq->done_lock); 219 218 while (treq->done != true) { … … 225 224 } 226 225 } 227 226 228 227 fibril_mutex_unlock(&treq->done_lock); 229 228 230 229 if (rc != ETIMEOUT) 231 230 break; 232 231 } 233 232 234 233 if (ntry >= REQ_RETRY_MAX) { 235 234 rc = EIO; 236 235 goto error; 237 236 } 238 237 239 238 if (treq->status != EOK) { 240 239 rc = treq->status; 241 240 goto error; 242 241 } 243 242 244 243 *rresp = treq->resp; 245 244 treq_destroy(treq); 246 245 free(req_data); 247 246 return EOK; 247 248 248 error: 249 249 if (treq != NULL) 250 250 treq_destroy(treq); 251 251 252 free(req_data); 252 253 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.