# # # patch "ChangeLog" # from [88a5a88b8f1f82e369f55bd207133448e5e81251] # to [400685f99d3035c3a4140fa5ad38d4d9d6bafe8b] # # patch "contrib/usher.cc" # from [ef50473490a7b31e456df91abebade99b4eaa017] # to [a85a96788684cdf4761de0c268444c31cca161d2] # ============================================================ --- ChangeLog 88a5a88b8f1f82e369f55bd207133448e5e81251 +++ ChangeLog 400685f99d3035c3a4140fa5ad38d4d9d6bafe8b @@ -1,5 +1,10 @@ 2006-04-21 Richard Levitte + * contrib/usher.cc (fork_server): Make sure to append to already + existing log file. + +2006-04-21 Richard Levitte + * contrib/usher.cc (fork_server): Redirect the logs of the sub- servers to log files instead of a pipe, and have the main process read that file instead of the pipe. ============================================================ --- contrib/usher.cc ef50473490a7b31e456df91abebade99b4eaa017 +++ contrib/usher.cc a85a96788684cdf4761de0c268444c31cca161d2 @@ -499,7 +499,7 @@ { string logfile = logdir + "/" + name + ".log"; int err[2]; - if ((err[1]=creat(logfile.c_str(),0644)) < 0) + if ((err[1]=open(logfile.c_str(),O_CREAT|O_APPEND,0644)) < 0) return false; if ((err[0]=open(logfile.c_str(),O_RDONLY)) < 0) {