git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Explain in --pid-file that using --inetd implies it automatically

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 29, 2007, 08:17 UTC
Message-ID
<7vabsasqk2.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<ejhm3gs6.fsf@cante.net>
Jari Aalto <jari.aalto@cante.net> writes:
Show 11 quoted lines
> diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt
> index f902161..687deb2 100644
> --- a/Documentation/git-daemon.txt
> +++ b/Documentation/git-daemon.txt
> @@ -124,7 +124,8 @@ OPTIONS
>  	Detach from the shell. Implies --syslog.
>  
>  --pid-file=file::
> -	Save the process id in 'file'.
> +	Save the process id in 'file'. When `--inetd` is in use, this
> +        option is not needed.

Is it "is not needed"? I think you meant to say "is ignored", IOW, no pid file is written.

Which unfortunately makes the title of your patch wrong as well X-<.

I am not seriously suggesting to apply the following patch at this point, but I think this is what we should have done from the beginning.

diff --git a/daemon.c b/daemon.c
index 9cf22fe..a7b7990 100644
--- a/daemon.c
+++ b/daemon.c
@@ -1143,8 +1143,8 @@ int main(int argc, char **argv)
 		usage(daemon_usage);
 	}
 
-	if (inetd_mode && (group_name || user_name))
-		die("--user and --group are incompatible with --inetd");
+	if (inetd_mode && (group_name || user_name || pid_file))
+		die("--user, --group and --pid-file are incompatible with --inetd");
 
 	if (inetd_mode && (listen_port || listen_addr))
 		die("--listen= and --port= are incompatible with --inetd");
Previous: Jari AaltoNext: Jari Aalto
Message 2 of 5 in “Explain in --pid-file that using --inetd implies it automatically”
  1. Explain in --pid-file that using --inetd implies it automaticallyJari Aalto, Aug 29, 2007
  2. Junio C HamanoAug 29, 2007
  3. Jari AaltoAug 29, 2007
  4. Junio C HamanoAug 29, 2007
  5. git-daemon(1): assorted improvements.Junio C Hamano, Aug 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.