diff options
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/normal/dt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c index ebe8b01a..adf07d1a 100644 --- a/src/ipcpd/normal/dt.c +++ b/src/ipcpd/normal/dt.c @@ -272,6 +272,8 @@ static void set_used(int fd, pthread_mutex_lock(&dt.stat[fd].lock); + memset(&dt.stat[fd], 0, sizeof(dt.stat[fd])); + dt.stat[fd].stamp = b ? now.tv_sec : 0; pthread_mutex_unlock(&dt.stat[fd].lock); |