AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(ltt-control,0.74-12112009)
+AM_INIT_AUTOMAKE(ltt-control,0.75-15112009)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
S_IRWXU|S_IRWXG|S_IRWXO);
if(fd_pairs->pair[fd_pairs->num_pairs-1].trace == -1) {
perror(path_trace);
+ open_ret = -1;
+ close(fd_pairs->pair[fd_pairs->num_pairs-1].channel);
+ fd_pairs->num_pairs--;
+ goto end;
}
ret = lseek(fd_pairs->pair[fd_pairs->num_pairs-1].trace,
0, SEEK_END);
if (ret < 0) {
perror(path_trace);
+ open_ret = -1;
+ close(fd_pairs->pair[fd_pairs->num_pairs-1].channel);
+ close(fd_pairs->pair[fd_pairs->num_pairs-1].trace);
+ fd_pairs->num_pairs--;
+ goto end;
}
} else {
printf("File %s exists, cannot open. Try append mode.\n", path_trace);
open_ret = -1;
+ close(fd_pairs->pair[fd_pairs->num_pairs-1].channel);
+ fd_pairs->num_pairs--;
goto end;
}
} else {
S_IRWXU|S_IRWXG|S_IRWXO);
if(fd_pairs->pair[fd_pairs->num_pairs-1].trace == -1) {
perror(path_trace);
+ open_ret = -1;
+ close(fd_pairs->pair[fd_pairs->num_pairs-1].channel);
+ fd_pairs->num_pairs--;
+ goto end;
}
}
}