aboutsummaryrefslogtreecommitdiff
path: root/win32/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ash: fix use of pid/handle in waitpid_childRon Yorston2016-05-181-1/+13
| | | | | | | | | | Previously spawn was returning a process handle which was treated as a pid in certain circumstances. This resulted in the following failing: find . -type f | sed xargs -n 1 sed -n '1 p' It should output the first line of each file but stopped after the first.
* win32: adjustments to spawn functionsRon Yorston2016-05-181-10/+10
| | | | | | | | Make mingw_spawn_applet and mingw_spawn_1 static. The return value from spawnve is an exit code in synchronous mode and a process handle in asynchronous mode. Pass these upwards without interpretation.
* win32: fix quoting of arguments with trailing backslashesRon Yorston2016-03-161-15/+48
| | | | | | | | Correctly handle the case where an argument needs to be quoted and has a backslash as its last character. The issue was detected by the test "sed a cmd ended by double backslash" in the BusyBox test suite.
* win32: silence some compiler warningsRon Yorston2015-07-151-1/+1
|
* mingw: fixes to implementation of waitpid(2)Ron Yorston2015-05-291-2/+2
| | | | | The third argument should be int. We only support positive pid values.
* mingw: tidy up implementation of kill(2)Ron Yorston2015-05-291-9/+13
|
* mingw: define a macro for spawnRon Yorston2015-05-271-1/+1
|
* win32: fix waitpid implementationRon Yorston2015-05-271-2/+11
| | | | _cwait requires a process handle, not a pid.
* Merge branch 'busybox' into mergeRon Yorston2014-05-061-3/+3
| | | | | | | Conflicts: debianutils/which.c editors/vi.c libbb/executable.c
* procps_scan: ensure command name is null terminatedRon Yorston2014-03-231-1/+1
|
* Fix some compiler warningsRon Yorston2014-03-131-1/+1
|
* Revised quoting of command line arguments for WIN32Ron Yorston2012-10-051-7/+7
| | | | | | | | | | | | | | | | * We only need to quote an argument if it contains whitespace. * There's no point in quoting ? or * because Windows still expands them. Anyhow, if the command line comes from a BusyBox shell it will usually have handled the globbing, so we should turn off Windows globbing for any wildcard that has made it through the shell without expansion. This means that BusyBox commands run from cmd.exe won't do wildcard expansion, though. * Backslashes only need to be doubled if they occur immediately before double quotes. * Double quotes need to be escaped with a backslash.
* mingw32: fix off-by-one errors in spawn routinesRon Yorston2012-05-101-2/+2
| | | | | | | | | | | There are two changes here. The first, in mingw_spawn_1, removes a post-increment of argv which should have no effect. The second, in mingw_spawn, should fix a reported problem with xargs: https://github.com/pclouds/busybox-w32/issues/19 Basically, 'find . -type f | xargs md5sum' was failing to process the first file.
* mingw32: allow whitespace after '#!' in shell scriptsRon Yorston2012-05-031-1/+9
|
* Some fixes to #! parsingRon Yorston2012-04-211-7/+8
|
* kill: no special treatment for MINGW32Ron Yorston2012-04-181-1/+1
|
* Detect and execute shell scripts based on presence of '#!'Ron Yorston2012-04-171-20/+54
|
* quote_arg(): correctly escape backslash charactersDaniel Klessing2011-11-211-2/+4
|
* win32: process.c: implement kill(), SIGTERM onlyNguyễn Thái Ngọc Duy2010-09-151-0/+17
|
* win32: reimplement procps_scan()Nguyễn Thái Ngọc Duy2010-09-151-0/+33
| | | | | | | On Linux, procps_scan() relies on /proc, which is obviously unavailable on Windows. This implementation currently supports procps_status_t.{pid,comm} only.
* win32: support .com executablesNguyễn Thái Ngọc Duy2010-09-141-1/+3
|
* win32: add next_path_sep()Nguyễn Thái Ngọc Duy2010-09-101-0/+20
|
* win32: add shell script and internal applet execution to spawn* and exec*Nguyễn Thái Ngọc Duy2010-09-101-0/+254
| | | | | | Most of this was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository.
* win32: add waitpid()Nguyễn Thái Ngọc Duy2010-09-101-0/+10