git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying
[exim.git]
/
src
/
src
/
queue.c
diff --git
a/src/src/queue.c
b/src/src/queue.c
index f53759c43ee0e92bf1a6e346dd5d4cbea5cbec1e..7648f47ca4b2bc223bc3f482072341ce22956e1f 100644
(file)
--- a/
src/src/queue.c
+++ b/
src/src/queue.c
@@
-1145,7
+1145,7
@@
switch(action)
case MSG_SHOW_COPY:
deliver_in_buffer = store_malloc(DELIVER_IN_BUFFER_SIZE);
deliver_out_buffer = store_malloc(DELIVER_OUT_BUFFER_SIZE);
case MSG_SHOW_COPY:
deliver_in_buffer = store_malloc(DELIVER_IN_BUFFER_SIZE);
deliver_out_buffer = store_malloc(DELIVER_OUT_BUFFER_SIZE);
- transport_write_message(
NULL, 1, 0, 0, NULL, NULL, NULL, NULL
, NULL, 0);
+ transport_write_message(
1
, NULL, 0);
break;
break;
@@
-1378,7
+1378,6
@@
switch(action)
}
if (yield)
}
if (yield)
- {
if (spool_write_header(id, SW_MODIFYING, &errmsg) >= 0)
printf("has been modified\n");
else
if (spool_write_header(id, SW_MODIFYING, &errmsg) >= 0)
printf("has been modified\n");
else
@@
-1386,7
+1385,6
@@
switch(action)
yield = FALSE;
printf("- while %s: %s\n", doing, errmsg);
}
yield = FALSE;
printf("- while %s: %s\n", doing, errmsg);
}
- }
break;
}
break;
}
@@
-1394,8
+1392,11
@@
switch(action)
/* Closing the datafile releases the lock and permits other processes
to operate on the message (if it still exists). */
/* Closing the datafile releases the lock and permits other processes
to operate on the message (if it still exists). */
-(void)close(deliver_datafile);
-deliver_datafile = -1;
+if (deliver_datafile >= 0)
+ {
+ (void)close(deliver_datafile);
+ deliver_datafile = -1;
+ }
return yield;
}
return yield;
}