Differences From Artifact [e0a9bfdbe7]:
- File filed.c — part of check-in [f278a98272] at 2020-04-01 19:03:57 on branch trunk — Ensure that pthread condition variable in logging is initialized (user: rkeene, size: 48998) [annotate] [blame] [check-ins using]
To Artifact [d39c0feefb]:
- File filed.c — part of check-in [457d68de44] at 2020-04-21 13:12:37 on branch trunk — Close cache file if we cannot duplicate it (user: rkeene, size: 49039) [annotate] [blame] [check-ins using]
︙ | |||
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 | 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 | + + + | if (filed_fileinfo_fdcache_size != 0) { /* * We have to make a duplicate FD, because once we release the cache * mutex, the file descriptor may be closed */ fd = dup(cache->fd); if (fd < 0) { close(cache->fd); cache->fd = -1; pthread_mutex_unlock(&cache->mutex); return(NULL); } buffer->fd = fd; buffer->len = cache->len; |
︙ |