Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
July 09, 2009 [Issue 3158] New: std.process.execv() not return result, but terminate application | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3158 Summary: std.process.execv() not return result, but terminate application Product: D Version: 2.031 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: golovanov_alexey@mail.ru Phobos in DMD 2.031, 2.030, 1.045 on Windows XP SP3: function int std.process.execv(in string pathname, in immutable(char)[][] argv) not return any value, but terminate application. Short example - caller.exe should run called.exe, then print returned value: /*** begin file caller.d */ import std.process; import std.stdio; void main() { string[] args = ["a1", "b2", "c3"]; int res = std.process.execv("called.exe", args); writefln("res=%d", res); /*this line never executed*/ }/*** end file caller.d */ In Windiws XP environment caller.exe terminates with code 0 while executing execv() function, and writefln() never executed - no any output occure; Under debug we can see calls: _Dmain -> std@process@execv -> _execv -> ___spawn -> sub_4263F0 -> _exec -> _exit -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 09, 2009 [Issue 3158] std.process.execv() not return result, but terminate application | ||||
---|---|---|---|---|
| ||||
Posted in reply to golovanov_alexey@mail.ru | http://d.puremagic.com/issues/show_bug.cgi?id=3158 BCS <shro8822@vandals.uidaho.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shro8822@vandals.uidaho.edu --- Comment #1 from BCS <shro8822@vandals.uidaho.edu> 2009-07-09 07:41:41 PDT --- This is spec is almost certainly wrong because the POSIX exec* calls replace the current process with whatever it is called with, The function never returns unless something goes wrong. These functions should be renamed or re speced. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 13, 2009 [Issue 3158] std.process.execv() not return result, but terminate application | ||||
---|---|---|---|---|
| ||||
Posted in reply to golovanov_alexey@mail.ru | http://d.puremagic.com/issues/show_bug.cgi?id=3158 Witold Baryluk <baryluk@smp.if.uj.edu.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |baryluk@smp.if.uj.edu.pl --- Comment #2 from Witold Baryluk <baryluk@smp.if.uj.edu.pl> 2009-07-13 03:07:14 PDT --- exec* calls bahaves this way. So IMHO documentation should be fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 01, 2013 [Issue 3158] (D1 only) std.process.execv() incorrect documentation | ||||
---|---|---|---|---|
| ||||
Posted in reply to golovanov_alexey@mail.ru | http://d.puremagic.com/issues/show_bug.cgi?id=3158 Martin Krejcirik <mk@krej.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mk@krej.cz Component|Phobos |websites Version|2.031 |D1 Resolution| |FIXED Summary|std.process.execv() not |(D1 only) |return result, but |std.process.execv() |terminate application |incorrect documentation OS/Version|Windows |Other -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 01, 2013 [Issue 3158] (D1 only) std.process.execv() incorrect documentation | ||||
---|---|---|---|---|
| ||||
Posted in reply to golovanov_alexey@mail.ru | http://d.puremagic.com/issues/show_bug.cgi?id=3158 Martin Krejcirik <mk@krej.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Martin Krejcirik <mk@krej.cz> 2013-04-01 23:11:22 CEST --- Sorry, accidentally closed, reopening. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation