fork: child process should call exit() 47/124547/1
authorSooyoung Ha <yoosah.ha@samsung.com>
Tue, 11 Apr 2017 15:06:54 +0000 (00:06 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Tue, 11 Apr 2017 15:06:54 +0000 (00:06 +0900)
Change-Id: I81ef43a5f54152e7f1d4f9480cd9b8220be794f2
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
src/file_sync_service.c

index b2c2f4c..8b0b73c 100644 (file)
@@ -582,7 +582,7 @@ void file_sync_service(int fd, void *cookie)
     if (pid == 0) {
         sdb_close(s[0]); //close the parent fd
         sync_read_label_notify(s[1]);
-        return;
+        _exit(0);
     } else if (pid > 0) {
         sdb_close(s[1]);