From: Johannes Sixt <j6t@kdbg.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [PATCH] daemon: send stderr of service programs to the syslog
Date: Mon, 15 Jun 2009 23:39:43 +0200 [thread overview]
Message-ID: <200906152339.43607.j6t@kdbg.org> (raw)
In-Reply-To: <200906142238.51725.j6t@kdbg.org>
On Sonntag, 14. Juni 2009, Johannes Sixt wrote:
> I don't know whether service programs like upload-archive or upload-pack
> write progress report to stderr or not, for example, if a client does not
> support side-bands. In this case this patch is probably not enough since
> this would fill the log with unneeded progress information. Any hints
> are appreciated.
The progress indicator can be helped . But there is now another anoyance: If
the client terminates the connection early, this is now logged as:
fatal: unable to run 'git-upload-pack'
The reason for this is that upload-pack is run as 'git upload-pack', which
itself spawns the external 'git-upload-pack'. The latter dies from a SIGPIPE,
and the former, in execv_dashed_external(), dutyfully writes this down.
The easiest solution is perhaps to make upload-pack a builtin.
BUT... The motivation, of which this patch is actually a fall-out, is to clean
up the messy error behavor of the start,finish,run_command family. To take
care of this error message is just one more (hopefully small) point on my
agenda.
> I intend to follow-up this patch with another one that integrates
> run_service_command() in execute() in order to streamline how the
> 'incoming' fd is inherited to the service programs.
I'm not sure anymore whether the change I planned here is worth it. When I
wrote this announcement, I had mis-remembered how daemon.c's handle() and
execute() functions and --inetd mode interact.
-- Hannes
next prev parent reply other threads:[~2009-06-15 21:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-14 20:38 [PATCH] daemon: send stderr of service programs to the syslog Johannes Sixt
2009-06-15 14:57 ` Shawn O. Pearce
2009-06-15 15:34 ` Nicolas Pitre
2009-06-15 19:06 ` H. Peter Anvin
2009-06-15 21:24 ` [PATCH] upload-pack: squelch progress indicator if client does not request sideband Johannes Sixt
2009-06-15 21:53 ` Junio C Hamano
2009-06-16 1:16 ` Nicolas Pitre
2009-06-16 5:02 ` Junio C Hamano
2009-06-16 18:03 ` Nicolas Pitre
2009-06-16 18:41 ` Johannes Sixt
2009-06-16 18:57 ` Junio C Hamano
2009-06-16 19:46 ` Nicolas Pitre
2009-06-15 21:39 ` Johannes Sixt [this message]
2009-06-15 21:43 ` [PATCH] daemon: send stderr of service programs to the syslog H. Peter Anvin
2009-06-16 20:27 ` Johannes Sixt
2009-06-16 20:30 ` H. Peter Anvin
2009-06-19 20:26 ` Junio C Hamano
2009-06-20 19:25 ` Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906152339.43607.j6t@kdbg.org \
--to=j6t@kdbg.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hpa@zytor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).