fclose(f);
} else
close(fd);
+ /* Update the file time */
+ tbuf.actime = now;
+ tbuf.modtime = now + o->retrytime;
+ if (utime(o->fn, &tbuf))
+ ast_log(LOG_WARNING, "Unable to set utime on %s: %s\n", o->fn, strerror(errno));
}
- /* Update the file time */
- tbuf.actime = now;
- tbuf.modtime = now + o->retrytime;
- if (utime(o->fn, &tbuf))
- ast_log(LOG_WARNING, "Unable to set utime on %s: %s\n", o->fn, strerror(errno));
}
static void *attempt_thread(void *data)
static int scan_service(char *fn, time_t now, time_t atime)
{
struct outgoing *o;
- struct utimbuf tbuf;
FILE *f;
o = malloc(sizeof(struct outgoing));
if (o) {