diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8472aa0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +inotifyrun diff --git a/a.out b/a.out deleted file mode 100755 index 2af980b..0000000 Binary files a/a.out and /dev/null differ diff --git a/inotifyrun.c b/inotifyrun.c index 9839439..2b0ff81 100644 --- a/inotifyrun.c +++ b/inotifyrun.c @@ -34,13 +34,13 @@ int main(int argc, char **argv) { inotifier = inotify_init() ); // Get array of files and commands - libcatch_retry = 0; + libcatch_behavior = 0; struct fcmd_pair *assocs = (struct fcmd_pair *)(argv + 1); struct fcmdwatcher_pair *assocs_watches = malloc((sizeof(struct fcmdwatcher_pair) * ((argc - 1) / 2)) + 1); struct fcmdwatcher_pair *watcherpair_ptr; CATCH(assocs_watches = malloc((sizeof(struct fcmdwatcher_pair) * ((argc - 1) / 2)) + 1)); // Initlialise inotify further while checking if all files are actual files - libcatch_retry = 2; + libcatch_behavior = 2; for (struct fcmd_pair *thispair = assocs; *(char**)thispair; thispair++) { // Check if file is an actual file struct stat fname_stat; @@ -57,7 +57,7 @@ int main(int argc, char **argv) { ); } // Wait for events to occur - libcatch_retry = 1; + libcatch_behavior = 1; struct inotify_event thisevent; while (1) { // Read new event diff --git a/libcatch b/libcatch index 4a7f680..db86a25 160000 --- a/libcatch +++ b/libcatch @@ -1 +1 @@ -Subproject commit 4a7f680d19963b35c0688aa3dcf2ec4f06940ff9 +Subproject commit db86a25c192661de3c8dc06d354a5bc281ac7c23