diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-18 13:33:43 -0700 |
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-18 13:33:43 -0700 |
| commit | 14df7aa3c937ed8907bd7e9b2657526233691803 (patch) | |
| tree | 77e876ba2739e7fe396e93b8fd908df845d60d51 /src/commit2.c | |
| parent | abc2986d38f4b6f7a7ccc0fd3fb10e4f21652209 (diff) | |
| parent | 3594ffa9f1c62d5f73d12b35f81a862c762b5d44 (diff) | |
| download | vyatta-cfg-14df7aa3c937ed8907bd7e9b2657526233691803.tar.gz vyatta-cfg-14df7aa3c937ed8907bd7e9b2657526233691803.zip | |
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-cfg into mendocino
Diffstat (limited to 'src/commit2.c')
| -rw-r--r-- | src/commit2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c index e3cc3df..d45b7c0 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -311,6 +311,7 @@ main(int argc, char** argv) //now update the changes file update_change_file(fp_changes,nodes_visited_coll); + fflush(fp_changes); ++i; } while ((trans_child_node = (GNode*)g_node_nth_child((GNode*)trans_coll,(guint)i)) != NULL); @@ -373,9 +374,11 @@ main(int argc, char** argv) strcmp(dirp->d_name, "..") != 0) { char buf[MAX_LENGTH_DIR_PATH*sizeof(char)]; sprintf(buf,"%s/%s",COMMIT_HOOK_DIR,dirp->d_name); + syslog(LOG_DEBUG,"Starting commit hook: %s",buf); if (system(buf) == -1) { - syslog(LOG_DEBUG,"commit::main(), error on call to hook: %s", buf); + syslog(LOG_WARNING,"Error on call to hook: %s", buf); } + syslog(LOG_DEBUG,"Finished with commit hook: %s",buf); } } unsetenv(ENV_COMMIT_STATUS); |
