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

Re: [PATCH] gc: remove unused launchctl_get_uid() call

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 9, 2021, 10:24 UTC
Message-ID
<nycvar.QRO.7.76.6.2109091222260.59@tvgsbejvaqbjf.bet>
In-Reply-To
<patch-1.1-93adb856b0c-20210909T012244Z-avarab@gmail.com>
Hi Ævar,
On Thu, 9 Sep 2021, Ævar Arnfjörð Bjarmason wrote:
Show 10 quoted lines
> When the launchctl_boot_plist() function was added in
> a16eb6b1ff3 (maintenance: skip bootout/bootstrap when plist is
> registered, 2021-08-24), an unused call to launchctl_get_uid() was
> added along with it. That call appears to have been copy/pasted from
> launchctl_boot_plist().
>
> Since we can remove that, we can also get rid of the "result"
> variable, whose only purpose was allow for the free() between its
> assignment and the return. That pattern also appears to have been
> copy/pasted from launchctl_boot_plist().

I don't find the most crucial information in that commit message: what is the fall-out of the removal of this call?

Such an analysis (_with_ a summary of it in the commit message) is definitely required. And it should not be left as an exercise for the reader.

Ciao, Johannes

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 5 of 11 in “macos: safeguard git maintenance against highly concurrent operations”
  1. 0/2 macos: safeguard git maintenance against highly concurrent operationsJohannes Schindelin via GitGitGadget, Aug 24, 2021
  2. 1/2 maintenance: create `launchctl` configuration using a lock fileJohannes Schindelin via GitGitGadget, Aug 24, 2021
  3. 2/2 maintenance: skip bootout/bootstrap when plist is registeredDerrick Stolee via GitGitGadget, Aug 24, 2021
  4. gc: remove unused launchctl_get_uid() callÆvar Arnfjörð Bjarmason, Sep 9, 2021
  5. Johannes SchindelinSep 9, 2021
  6. Ævar Arnfjörð BjarmasonSep 9, 2021
  7. Johannes SchindelinSep 9, 2021
  8. Junio C HamanoSep 9, 2021
  9. gc: remove unused launchctl_get_uid() callÆvar Arnfjörð Bjarmason, Sep 12, 2021
  10. Junio C HamanoAug 25, 2021
  11. Johannes SchindelinAug 25, 2021

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.