Search squid archive

Re: Squid redirectors children doesn't shutdown/die with squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jorge Iván Burgos Aguilar <jorgeburgos@xxxxxxxxxxxxxxxxxxx>

> 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


      



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux