169:76c96ee18221 | 171:af7e2d80dee6 |
---|---|
326 } | 326 } |
327 | 327 |
328 return dir; | 328 return dir; |
329 } | 329 } |
330 | 330 |
331 int system_close(int fd) { | |
332 while(close(fd)) { | |
333 if(errno != EINTR) { | |
334 return -1; | |
335 } else { | |
336 log_ereport(LOG_VERBOSE, "close interrupted by signal"); // TODO: use debug log level | |
337 } | |
338 } | |
339 return 0; | |
340 } | |
341 | |
331 NSAPI_PUBLIC int | 342 NSAPI_PUBLIC int |
332 getThreadMallocKey(void) | 343 getThreadMallocKey(void) |
333 { | 344 { |
334 return thread_malloc_key; | 345 return thread_malloc_key; |
335 } | 346 } |