[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.5,1.5.2.1
citats at lists.digium.com
citats at lists.digium.com
Mon Mar 15 00:44:49 CST 2004
- Previous message: [Asterisk-cvs] asterisk/pbx pbx_spool.c,1.5,1.6
- Next message: [Asterisk-cvs] libpri Makefile,1.6,1.7 libpri.h,1.18,1.19 pri.c,1.10,1.11 pri_internal.h,1.5,1.6 q921.c,1.6,1.7 q931.c,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv9748/pbx
Modified Files:
Tag: v1-0_stable
pbx_spool.c
Log Message:
Update spool file times after we close the file (bug 1018)
Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -d -r1.5 -r1.5.2.1
--- pbx_spool.c 28 Jan 2004 21:32:48 -0000 1.5
+++ pbx_spool.c 15 Mar 2004 05:38:52 -0000 1.5.2.1
@@ -234,11 +234,6 @@
f = fopen(fn, "r+");
if (f) {
if (!apply_outgoing(o, fn, f)) {
- /* Update the file time */
- tbuf.actime = atime;
- tbuf.modtime = now + o->retrytime;
- if (utime(o->fn, &tbuf))
- ast_log(LOG_WARNING, "Unable to set utime on %s: %s\n", fn, strerror(errno));
/* Increment retries */
o->retries++;
#if 0
@@ -249,6 +244,11 @@
fseek(f, 0L, SEEK_END);
fprintf(f, "Retry: %d (%ld)\n", o->retries, (long) now);
fclose(f);
+ /* Update the file time */
+ tbuf.actime = atime;
+ tbuf.modtime = now + o->retrytime;
+ if (utime(o->fn, &tbuf))
+ ast_log(LOG_WARNING, "Unable to set utime on %s: %s\n", fn, strerror(errno));
now += o->retrytime;
launch_service(o);
return now;
- Previous message: [Asterisk-cvs] asterisk/pbx pbx_spool.c,1.5,1.6
- Next message: [Asterisk-cvs] libpri Makefile,1.6,1.7 libpri.h,1.18,1.19 pri.c,1.10,1.11 pri_internal.h,1.5,1.6 q921.c,1.6,1.7 q931.c,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list