pepper-inotify: fix to remove an event source when error/hangup comes from it 22/266222/3 accepted/tizen/unified/20211110.122244 submit/tizen/20211109.110721 submit/tizen/20211110.005634
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 9 Nov 2021 08:01:33 +0000 (17:01 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 9 Nov 2021 08:19:31 +0000 (08:19 +0000)
Change-Id: Ia0c3f7b96fe7f2f0be4b73c58f63ed2bb83057ac
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/lib/inotify/pepper-inotify.c

index 727be5ad217578d410466c5f711d853b579b7598..db2c4f107e588930e6d0d5c19316ead457c37c6f 100644 (file)
@@ -88,8 +88,7 @@ _inotify_fd_read(int fd, uint32_t mask, void *data)
 
                if (watch_data->event_source)
                        wl_event_source_fd_update(watch_data->event_source, (uint32_t)0);
-
-               close(fd);
+               wl_event_source_remove(watch_data->event_source);
                return 0;
        }