summary refs log tree commit diff stats
path: root/lib/pure/osproc.nim
Commit message (Collapse)AuthorAgeFilesLines
* correct argument name, (#10813)Anthon van der Neut2019-03-181-1/+2
| | | | | | | | | | * correct argument name, updated using poUsePath, based on feedback from c-blake * Update osproc.nim * explicit args parameter
* Revert "Follow the documentation's recommendation (#10808)"narimiran2019-03-101-2/+1
| | | | This reverts commit 1a13b3a14eafc35615c7e9f1b72b3ab646fa7550.
* Follow the documentation's recommendation (#10808)Anthon van der Neut2019-03-081-1/+2
| | | | The doc states "Make sure to pass options explicitly.", but the example didn't. Since constructing a string for the shell with appropriate quotes is non-trivial, the first example should be how to use `execProcess` including `args`
* better docs: osproc (#10708)Miran2019-02-191-66/+159
| | | | | * better docs: osproc * fix a typo in the docs, deprecate "demon"
* osproc: fix minor typoAraq2019-02-141-1/+1
|
* make travis greenAraq2019-02-061-1/+1
|
* Remove long deprecated stuff (#10332)Miran2019-01-181-16/+0
|
* fixes #10273 execShellCmd now returns nonzero when child killed with signal ↵Timothee Cour2019-01-131-14/+7
| | | | | | | | | | + other fixes (#10274) * s/exitStatus(...)/exitStatusLikeShell(...)/ * fix #10273 execShellCmd now returns nonzero when child exits with signal * test case for #10249 and explanation for the bug * fix test failure * add tests/nim.cfg
* Update osproc.nim (#10043)Timothee Cour2018-12-191-1/+1
|
* undo last commit (meant to send a PR instead)Timothee Cour2018-12-181-1/+1
|
* Update osproc.nimTimothee Cour2018-12-181-1/+1
|
* address commentsTimothee Cour2018-12-041-1/+1
|
* fixupTimothee Cour2018-12-041-1/+1
|
* address commentsTimothee Cour2018-12-031-12/+2
|
* fixupTimothee Cour2018-12-031-1/+1
|
* fixupTimothee Cour2018-12-031-1/+2
|
* add osproc.processID()Timothee Cour2018-12-031-0/+10
|
* Add workingDir parameter to execProcess and test (#9549)Tomohiro2018-11-261-1/+3
| | | | | | * Add workingDir parameter to execProcess * Fix tests/stdlib/tosproc.nim compile error * Suppress output from tosproc.nim
* activated more tests, allow input in test specArne Döring2018-11-231-0/+6
|
* Fixes #9671 (#9750)Randy Smith2018-11-191-1/+0
|
* deprecated ospaths (#9665)Andreas Rumpf2018-11-091-1/+1
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|
* Testament pre parallel (#9137)Jacek Sieka2018-10-121-1/+4
| | | | | | | | | | * testament: move to root dir (it's not a test) * osproc: fix process index passed to afterRunEvent for parallel runs it was passing the index of the process, not index of all commands * testament: complete file move
* add data.sysCommand when startProcessAuxSpawn raisesTimothee Cour2018-09-061-1/+1
|
* merged #8624 manually; fixes #8442; closes #8575Araq2018-08-311-2/+4
|
* execCmdEx stderr redirection (#8162)Timothee Cour2018-07-011-3/+1
|
* make tests green againAndreas Rumpf2018-05-181-1/+1
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-19/+14
|
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-181-1/+1
|
* osproc: fix double close on POSIX (#5724)Michał Zieliński2018-04-161-6/+14
| | | Calling close() in some cases issued two close() syscalls to one FD, which is incorrect in multithreaded programs.
* Fix compiler stuck on waiting C/CPP backends. (#7472)Eugene Kabanov2018-04-021-1/+7
|
* make osproc.execProcesses more robustAndreas Rumpf2018-02-251-2/+2
|
* Better times module (#6552)GULPF2017-12-181-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time
* Fixcheatfate2017-12-131-1/+1
|
* execProcesses optimization.cheatfate2017-12-121-24/+29
|
* Windows: Fix invalid handle value for `execProcesses`.cheatfate2017-12-121-7/+11
| | | | Windows. Fix named pipes leak.
* Remove `-3` as marker of exited process.cheatfate2017-12-111-41/+77
| | | | | | | | Cache exiting process for Windows to omit unnecessary syscalls. Fix closing hThread for Windows. Fix for pause/resume on Windows. Fix process handle leak on Windows. Change behavior for waitForExit on Windows.
* merged patch #6876 manually, taking care of poDemonAndreas Rumpf2017-12-111-17/+18
|
* Merge branch 'nexecProcesses' of https://github.com/cheatfate/Nim into ↵Andreas Rumpf2017-12-011-56/+82
|\ | | | | | | cheatfate-nexecProcesses
| * Explicit array initialization removed.cheatfate2017-11-291-2/+0
| |
| * Fix nimrtl troubles.cheatfate2017-11-281-2/+1
| |
| * Refactored version of execProcesses with test.cheatfate2017-11-281-54/+83
| |
* | osproc improvement: check API consistency in order to prevent bug #6820Araq2017-11-281-0/+8
|/
* Move quoteShell to ospaths (#6794)Fredrik Høisæther Rasch2017-11-241-65/+3
| | | Enables quoteShell on nimscript
* Trim remaining expr/stmt from stdlib (#6742)Lynn C. Rees2017-11-151-1/+1
|
* Fix path for sh on Android (#6661)Fredrik Høisæther Rasch2017-11-031-1/+3
|
* osproc.execProcesses: enable poParentStreams for posix; should make travis ↵Andreas Rumpf2017-10-261-1/+1
| | | | green again
* osproc on Windows: fix peekExitCode for closed processesAraq2017-10-251-0/+2
|
* osproc: fixes a memory leak affecting WindowsAraq2017-09-301-7/+7
|
* fixes #1734, fixes #3138, fixes #3759araq2017-09-011-14/+17
|