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

Re: What's cooking in git.git (Jul 2025, #02; Mon, 7)

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Jul 10, 2025, 04:25 UTC
Message-ID
<tuglsm3r64mkgzdh2zdrewpzydz7xmyatqxwbbzpqmltwseefc@65cbcs3pq2qg>
In-Reply-To
<668ce4d4-3b60-47e0-a4a5-dbf73efd1e75@kdbg.org>
On Wed, Jul 09, 2025 at 05:04:51PM -0800, Johannes Sixt wrote:
Show 8 quoted lines
> Am 09.07.25 um 12:41 schrieb Carlo Marcelo Arenas Belón:
> > CC: Johannes Sixt on feedback for SIGCHLD in mingw which uses 17 instead
> >     of 20 (cygwin and others) and therefore seem to cause signal to err
> >     without setting errno as it should.
> 
> I don't know what the relevance of the actual number of a signal is.
> Nobody is supposed to use the number, only the macro. But I may be
> misjudging the situation as a bystander of this discussion.

In d28250654f (Windows: Fix signal numbers, 2009-01-22), the value for SIGCHLD was changed from 0 to 17 mentioning some sort of POSIX system.

the relevance comes that if I build a program in Windows that calls `signal(SIGCHLD)` using that number I get an error back, but nothing on errno, but if the number would be instead 20, like in Cygwin/macOS suddenly the behaviour changes and we get the expected EINVAL(20) in errno.

> Furthermore, there is no such thing as "a signal" on Windows (outside of
> Cygwin), let alone a SIGCHLD. Therefore, this topic about SA_RESTART is
> irrelevant for the MinGW port.

So do you have any objection on changing the value (which should be otherwise unused, and irrelevanted as you pointed out) to 20 then?

Carlo
Previous: Johannes SixtNext: Johannes Sixt
Message 8 of 17 in “What's cooking in git.git (Jul 2025, #02; Mon, 7)”
  1. Junio C HamanoJul 8, 2025
  2. Ayush ChandekarJul 8, 2025
  3. René ScharfeJul 9, 2025
  4. Junio C HamanoJul 9, 2025
  5. Carlo Marcelo Arenas BelónJul 9, 2025
  6. Phillip WoodJul 9, 2025
  7. Johannes SixtJul 9, 2025
  8. Carlo Marcelo Arenas BelónJul 10, 2025
  9. Johannes SixtJul 10, 2025
  10. Junio C HamanoJul 10, 2025
  11. Junio C HamanoJul 9, 2025
  12. Taylor BlauJul 9, 2025
  13. Junio C HamanoJul 10, 2025
  14. Elijah NewrenJul 10, 2025
  15. Junio C HamanoJul 10, 2025
  16. brian m. carlsonJul 9, 2025
  17. Junio C HamanoJul 10, 2025

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.