Thread (16 messages) flat view 16 messages, 7 authors, 2016-06-15

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

From: Johannes Schindelin <hidden>
Date: 2016-06-15 23:04:32

Hi Rupert,

On 2015-04-23 21:25, rupert thurner wrote:
On Thursday, April 16, 2015 at 2:45:11 PM UTC+2, Johannes Schindelin wrote:
quoted
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
Reading this page carefully reveals that you have to construct JobObjects explicitly. So you cannot get from a process ID to a JobObject; there is probably none. Or there is one. Or many.

Ciao,
Johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help