Re: [PATCH v5] gc: save log from daemonized gc --auto and print it next time

2015-09-21 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > While commit 9f673f9 (gc: config option for running --auto in > background - 2014-02-08) helps reduce some complaints about 'gc > --auto' hogging the terminal, it creates another set of problems. > > The latest in this set is, as the result of daemonizing, stderr i

Re: [Alt. PATCH v5] gc: save log from daemonized gc --auto and print it next time

2015-09-21 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The lock-based version has an advantage that the following gc runs > will never see partial gc.log. But it requires some more hook at > atexit() and maybe signal handler. > > This version avoids that, and gc.log can be kept even if gc is > SIGKILL'd (unlikel

[PATCH v5] gc: save log from daemonized gc --auto and print it next time

2015-09-18 Thread Nguyễn Thái Ngọc Duy
While commit 9f673f9 (gc: config option for running --auto in background - 2014-02-08) helps reduce some complaints about 'gc --auto' hogging the terminal, it creates another set of problems. The latest in this set is, as the result of daemonizing, stderr is closed and all warnings are lost. This

[Alt. PATCH v5] gc: save log from daemonized gc --auto and print it next time

2015-09-18 Thread Nguyễn Thái Ngọc Duy
While commit 9f673f9 (gc: config option for running --auto in background - 2014-02-08) helps reduce some complaints about 'gc --auto' hogging the terminal, it creates another set of problems. The latest in this set is, as the result of daemonizing, stderr is closed and all warnings are lost. This