1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

observe only the temp file and not longer the directory /tmp

This commit is contained in:
Stefan Lankes 2016-08-29 16:23:08 +02:00
parent 52aa821e33
commit ac9fe0f085

View file

@ -193,7 +193,7 @@ static void wait_qemu_available(void)
exit(1);
}
int wd = inotify_add_watch(fd, "/tmp", IN_MODIFY|IN_CREATE);
int wd = inotify_add_watch(fd, tmpname, IN_MODIFY|IN_CREATE);
while(1) {
int length = read(fd, buffer, BUF_LEN);