projects
/
attachcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly wait for the MTA to finish before exiting.
[attachcheck]
/
attachcheck
diff --git
a/attachcheck
b/attachcheck
index e5ac549ed9be819b9dcf9c54d7d57e76587b4483..e633291c10340890abf45452aac7fe3cc3da871b 100755
(executable)
--- a/
attachcheck
+++ b/
attachcheck
@@
-58,9
+58,11
@@
def send_message():
cmd[0] = sendmail
from subprocess import Popen, PIPE
cmd[0] = sendmail
from subprocess import Popen, PIPE
- mailpipe = Popen(cmd, stdin=PIPE).stdin
+ process = Popen(cmd, stdin=PIPE)
+ mailpipe = process.stdin
mailpipe.write( message_string )
mailpipe.write( message_string )
- sys.exit( mailpipe.close() )
+ mailpipe.close()
+ sys.exit( process.wait() )
## SUB: print error message
def print_error():
## SUB: print error message
def print_error():
Benjamin Mako Hill
||
Want to submit a patch?