[Issue 11184] New: Win64: killing process with invalid handle terimates current process
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 6 09:34:13 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11184
Summary: Win64: killing process with invalid handle terimates
current process
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2013-10-06 09:34:12 PDT ---
module test;
import std.process;
import std.stdio;
void main()
{
scope(exit) writeln("Goodbye");
writeln("spawn");
auto pid = spawnProcess(["find.exe"]);
writeln("wait");
wait(pid);
writeln("kill");
kill(pid);
}
compiled with "dmd -m64 test.d" yields this output:
spawn
wait
FIND: Parameter format not correct
kill
while it prints "Goodbye" if the kill is not called. This is caused by the
current process being terminated by kill (the fix is versioned for Win32 only).
Fix is part of this PR:
https://github.com/D-Programming-Language/phobos/pull/1411/files#diff-8ac4ebb5dcc368ac0e9b7b9f118aa824L1299
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list