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

Re: [PATCH] compat/mingw: stubs for getpgid() and tcgetpgrp()

From
RTrupert thurner <rupert.thurner@gmail.com>
Date
Apr 24, 2015, 03:03 UTC
Message-ID
<97173c38-4f76-49cd-8365-e97fde34ed35@googlegroups.com>
In-Reply-To
<cc79154d-4e18-41a4-938f-ca6e30b2e6d9@googlegroups.com>
On Thursday, April 23, 2015 at 9:25:49 PM UTC+2, rupert thurner wrote:
Show 33 quoted lines
>
> On Thursday, April 16, 2015 at 2:45:11 PM UTC+2, Johannes Schindelin wrote:
>>
>> Hi kusma, 
>>
>> On 2015-04-15 21:43, Erik Faye-Lund wrote: 
>> > On Wed, Apr 15, 2015 at 8:29 PM, Johannes Sixt <j...@kdbg.org> wrote: 
>> >> Windows does not have process groups. It is, therefore, the simplest 
>> >> to pretend that each process is in its own process group. 
>> > 
>> > Windows does have some concept of process groups, but probably not 
>> > quite what you want: 
>> > 
>> > 
>> https://msdn.microsoft.com/en-us/library/windows/desktop/ms682083%28v=vs.85%29.aspx 
>>
>> Yes, and we actually need that in Git for Windows anyway because shooting 
>> down a process does not kill its child processes: 
>>
>>
>> https://github.com/git-for-windows/msys2-runtime/commit/15f209511985092588b171703e5046eba937b47b#diff-8753cda163376cee6c80aab11eb8701fR402 
>>
>> However, using this code for `getppid()` would be serious overkill (not 
>> to mention an unbearable performance hit because you have to enumerate 
>> *all* processes to get that information). 
>>
>>
> is the windows "JobObject" similar to processgroup? at least killing the 
> parent process in a jobobject will kill all childs as well:
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms681949%28v=vs.85%29.aspx
>  
>

here some discussion of windows console process group, CREATE_NEW_PROCESS_GROUP, GenerateConsoleCtrlEvent, and job object from the last century: https://www.microsoft.com/msj/0698/win320698.aspx

rupert
-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Previous: rupert thurnerNext: Johannes Schindelin
Message 15 of 20 in “reduce progress updates in background”
  1. reduce progress updates in backgroundLuke Mewburn, Apr 13, 2015
  2. Nicolas PitreApr 13, 2015
  3. Luke MewburnApr 13, 2015
  4. Nicolas PitreApr 13, 2015
  5. reduce progress updates in backgroundLuke Mewburn, Apr 14, 2015
  6. Nicolas PitreApr 14, 2015
  7. compat/mingw: stubs for getpgid() and tcgetpgrp()Johannes Sixt, Apr 15, 2015
  8. Junio C HamanoApr 15, 2015
  9. Johannes SixtApr 15, 2015
  10. Johannes SchindelinApr 16, 2015
  11. Junio C HamanoApr 16, 2015
  12. Erik Faye-LundApr 15, 2015
  13. Johannes SchindelinApr 16, 2015
  14. rupert thurnerApr 23, 2015
  15. rupert thurnerApr 24, 2015
  16. Johannes SchindelinApr 24, 2015
  17. Luke MewburnApr 17, 2015
  18. Luke MewburnApr 14, 2015
  19. brian m. carlsonApr 14, 2015
  20. Johannes SchindelinApr 14, 2015

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.