summaryrefslogtreecommitdiffstats
path: root/src/subprocess-win32.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add 'using namespace std;' to all cc files to prepare for removing it from ↵Michael Jones2020-09-301-0/+2
| | | | header files
* Improve error messages when ninja commands fail on Windows.Brett Vickers2019-08-281-5/+13
| | | | | | | | When a call to the Win32 API CreateProcessA fails, ninja now outputs the exact command string that caused it to fail. It also detects when the command contained leading whitespace and outputs a hint that lets the user know why the command failed.
* subprocess-win32: add hint on ERROR_INVALID_PARAMETERBen Boeckel2018-11-091-0/+4
| | | | | This is generally associated with the command line being too long. Give a hint to this case in the error message.
* Fix building on Windows in UNICODE modeGergely Nagy2017-10-311-5/+6
|
* Remove unnecessary `std::`Tetsuo Kiso2016-01-101-1/+1
|
* win console wip: Fix comments based on review feedback.Nico Weber2014-05-181-1/+1
|
* win console wip: resolve FIXMENico Weber2014-05-141-1/+1
|
* win console wip: ctrl-c should reach commands running in console poolsNico Weber2014-05-131-1/+4
|
* wip for console pool on windowsNico Weber2014-05-131-9/+15
|
* Introduce the "console" poolPeter Collingbourne2014-02-031-1/+4
| | | | | | | This is a pre-defined pool with a depth of 1. It has the special property that any task in the pool has direct access to the console. This can be useful for interactive tasks or long-running tasks which produce status updates on the console (such as test suites).
* wrap some overlong linesEvan Martin2012-12-291-2/+5
|
* move Win32Fatal into utilEvan Martin2012-08-121-8/+0
|
* windows: fix printf format for process idEvan Martin2012-07-271-1/+1
|
* wrap at 80 columnsEvan Martin2012-07-271-2/+5
|
* pass subprocesses handle to nul device rather than null handleScott Graham2012-05-091-5/+16
|
* Put & operator with the type rather than the variable name.Thiago Farina2012-04-281-1/+1
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Merge pull request #176 from pcc/exit-cleanupEvan Martin2012-02-141-8/+55
|\ | | | | Implement cleanup-on-interrupt
| * Implement cleanup-on-interruptPeter Collingbourne2012-02-041-8/+55
| | | | | | | | | | | | | | | | This causes us to clean up by deleting any output files belonging to currently-running commands before we quit if we are interrupted (either by Ctrl-C or by a command failing). Fixes issue #110.
* | Avoid using undefined value in Subprocess::OnPipeReady()Qingning Huo2012-02-041-2/+3
|/
* Mark CreateProcess "program not found" failure as non-fatalQingning Huo2012-01-201-2/+20
|
* factor out windows perror equivalentEvan Martin2011-12-201-15/+1
|
* windows: clear process launch structs before using themEvan Martin2011-12-021-0/+2
|
* Remove warning triggered by -Wextra on MinGW.Nicolas Despres2011-11-191-1/+1
|
* Use more portable way to get the current process ID.Nicolas Despres2011-11-191-2/+1
| | | | | | | GetProcessId() is available only since Windows XP. Since MinGW define WINVER to 0x0400 which is Windows 2000 I think, we have a compilation error. Using GetCurrentProcessId() instead of GetProcessId(GetCurrentProcess()) fix this issue.
* This is C++, there is no need to write 'struct' before the type when ↵Thiago Farina2011-09-101-1/+1
| | | | | | declaring a variable. Signed-off-by: Thiago Farina <tfarina@chromium.org>
* subprocess-win32.cc: change named pipe names to contain process ID and ↵Qingning Huo2011-09-041-2/+2
| | | | subprocess object address.
* Fix for win32 long command lines:U-MATHLETE\John2011-06-261-2/+3
| | | | | | - remove 'cmd /c' prepend from SubProcess::Start() - fix the subprocess tests to prepend 'cmd /c' explicitly
* Fix for 'pipe has ended' errors on Win32 distributed buildsEvan Martin2011-06-251-0/+5
| | | | Patch from John Birtley.
* windows: remove extra printEvan Martin2011-05-081-1/+0
|
* windows: pass subprocess testsEvan Martin2011-05-081-2/+4
|
* windows: subprocess implementation for WindowsEvan Martin2011-05-061-0/+211
Heavily based on a patch from Sergey Nenakhov <nenakhov.sergey@gmail.com>.