GNU bug report logs -
#15983
24.3; Emacs Not Killing Child Process
Previous Next
Reported by: sjm <at> sjm.io
Date: Wed, 27 Nov 2013 17:50:02 UTC
Severity: minor
Found in version 24.3
Full log
View this message in rfc822 format
> Date: Sat, 21 Dec 2013 00:28:02 +0200
> From: Joan Karadimov <joan.karadimov <at> gmail.com>
> Cc: Simon Morgan <sjm <at> sjm.io>, Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
>
> Back to the main issue - I wasn't aware that pid's get reused so rapidly on
> Windows.
Windows uses the same pool of numbers for process and thread IDs, so
the numbers are reused very quickly.
> As for the implementation - your idea sounds great but I have no idea how to
> put it together.
Neither do I.
> I am able to come up with some other stuff that use snapshots and do not
> kill
> unrelated processes. However, they skip any processes that are spawned after
> the sys_kill subroutine is called.
This might be "good enough" -- we err on the safe side, and only leave
some subprocesses not killed in rare situations. Does this strategy
solve the problem which started this bug report? If so, please tell
the main ideas of how you intend to avoid killing unrelated processes.
> Now I am starting to think in another direction. Would something like:
> system("taskkill /PID XXXX /T")
> ... be an acceptable solution?
Unfortunately, taskkill is not available widely enough. E.g., on my
XP Home edition, it is not available, and I believe it is not there on
systems older than XP, which we still support.
Thanks.
This bug report was last modified 11 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.