Commits

Anonymous committed 2792a82

also open windows if the in fifo is created/modified

Comments (0)

Files changed (1)

 
 			if (cur->mask & (IN_CREATE | IN_ISDIR))
 				ftw(argv[i], add_dir, MAX_OPENFD);
-			if (cur->mask & (IN_CREATE | IN_MODIFY) && !strcmp(cur->name, "out")) {
+			if (cur->mask & (IN_CREATE | IN_MODIFY) && (!strcmp(cur->name, "out") || !strcmp(cur->name, "in"))) {
 				for (w = watches; w; w = w->next) {
 					if (w->wd == cur->wd) {
 						win(w);