Forums: users (Thread #17866)

sync (2008-02-29 22:35 by Anonymous #35350)

--show-processを指定してstdoutをファイルにリダイレクトしているのですが
バッファリングされているためファイルには途中までしか出力されていません。
添付のパッチは適切ではないかもしれませんが
とにかく適当なタイミングでフラッシュされてほしいです。

Index: bsfilter
===================================================================
RCS file: /cvsroot/bsfilter/bsfilter/bsfilter,v
retrieving revision 1.84
diff -u -p -r1.84 bsfilter
--- bsfilter 12 Feb 2007 05:45:32 -0000 1.84
+++ bsfilter 29 Feb 2008 13:31:15 -0000
@@ -3282,6 +3282,7 @@ EOM
@options["message-fh"] = STDOUT
@options["pipe-fh"] = STDOUT
# keep STDOUT in text mode
+ @options["message-fh"].sync = true
end

## @options["message-fh"].sync = true

Reply to #35350×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: sync (2008-03-02 23:27 by nabeken #35392)

とくに副作用は思いつかなかったので、syncするようにして1.0.16をリリースしました。

フラッシュされなくて不都合ということは、メール毎にプロセスを起動、終了するような使い方ではない、ということでしょうか。

Reply to #35350

Reply to #35392×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: sync (2008-03-02 23:54 by Anonymous #35393)

そうです。ふだんはPOPサーバとしてつかっています。
Reply to #35392

Reply to #35393×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login