Trivial cleanups

This commit is contained in:
Kim Woelders
2018-09-12 12:14:47 +02:00
parent 3231247534
commit cc95ed0ad2
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -148,10 +148,10 @@ static void ttynvt_release(fuse_req_t req, struct fuse_file_info *info)
close(tty->fds[FD_MASTER].fd); close(tty->fds[FD_MASTER].fd);
close(tty->fds[FD_SLAVE].fd); close(tty->fds[FD_SLAVE].fd);
(void)pthread_cancel(tty->thread_id); pthread_cancel(tty->thread_id);
(void)pthread_join(tty->thread_id, NULL); pthread_join(tty->thread_id, NULL);
(void)pthread_mutex_destroy(&tty->tty_lock); pthread_mutex_destroy(&tty->tty_lock);
(void)pthread_mutex_destroy(&tty->poll_lock); pthread_mutex_destroy(&tty->poll_lock);
if (tty->ph) if (tty->ph)
fuse_pollhandle_destroy(tty->ph); fuse_pollhandle_destroy(tty->ph);