Re: [squid-users] Squid redirectors children doesn't shutdown/die with squid

From: John Doe <jdmls_at_yahoo.com>
Date: Wed, 8 Sep 2010 09:07:57 -0700 (PDT)

From: Jorge Iván Burgos Aguilar <jorgeburgos_at_inaipyucatan.org.mx> > Well to be honest m not so sure, i have seen the code at > src/redirect.cc and cant confirm the behavior m seen, but if i put a > debug line logging all input send to the redirector script i find > thousands of \n (0x0a), a good line of arguments and then another > thousands of \n (0x0a), maybe as you say this is not send by squid but > maybe something related to the way python read the stdin, don't know > but obviously as of the moment m sending a \n per every line i found > that doesn't have the well-know syntax and seems to work... Maybe try -u...? -u Force stdin, stdout and stderr to be totally unbuffered. On systems where it matters, also put stdin, stdout and stderr in binary mode. Note that there is internal buffering in xread- lines(), readlines() and file-object iterators ("for line in sys.stdin") which is not influenced by this option. To work around this, you will want to use "sys.stdin.readline()" inside a "while 1:" loop. JD
Received on Wed Sep 08 2010 - 16:08:04 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 09 2010 - 12:00:02 MDT