Gauche

WiLikiのプレビューがおかしくなる問題:解決

ついに分かった。 Gaucheのcgi-headerを使うと、(tree->string (cgi-header))は"Content-type: text/html\n\n"となるけど、これが間違いで本当は"Content-type: text/html\r\n\r\n"でないといけない。(マニュアルでは正しい結果を返すようになってる。一番新…

FastCGIスクリプトの再起動

#!/usr/local/bin/gosh ... (use www.fastcgi) ... (define (main args) (call-with-output-file "wiliki.pid" (pa$ write (sys-getpid)) :if-does-not-exist :create) (with-fastcgi (lambda () ... )))としてプロセス番号をファイルに書き出しておく。 kil…