Araq
dd806cafa0
distinguish between 'defined' and 'declared'
2014-08-11 20:38:28 +02:00
jfhg
26ba9e6d32
fix build on DragonFly BSD and FreeBSD
2014-07-23 22:47:16 +02:00
Araq
be229163af
Merge branch 'new_spawn' of https://github.com/Araq/Nimrod into new_spawn
2014-06-01 22:00:06 +02:00
Andreas Rumpf
208a594ff1
Merge pull request #1178 from EXetoC/nostackframe
...
noStackFrame -> asmNoStackFrame
2014-05-29 02:15:01 +02:00
EXetoC
f66f43bca0
Fix more 'undeclared identifier' errors.
2014-05-14 18:12:47 +02:00
Araq
6195dbe491
initial non-compiling version of 'parallel'
2014-05-12 11:12:37 +02:00
EXetoC
0a0b74bc24
asmNoStackFrame -> stackTrace:off
2014-05-04 22:48:53 +02:00
EXetoC
8d19b09959
noStackFrame -> asmNoStackFrame
2014-05-04 16:07:37 +02:00
Araq
4075159933
reintroduce thread analysis but disable it for backwards compatibility
2014-04-20 22:15:25 +02:00
Grzegorz Adam Hankiewicz
de04c97696
Improves startProcess docstring for poEvalCommand usage.
2014-04-16 23:14:13 +02:00
Araq
121553d1a6
osproc compiles again for haiku
2014-03-10 17:32:50 +01:00
Michał Zieliński
f4371bfef8
osproc: add warning about using waitForExit without poParentStreams
2014-02-27 19:52:04 +01:00
Michał Zieliński
7314f11adc
osproc: MacOSX fix - if -> when
2014-02-24 17:45:45 +01:00
Michał Zieliński
30a3098095
osproc: MacOSX workaround for lack of execvpe
2014-02-24 17:01:00 +01:00
Andreas Rumpf
00b69192f2
Merge pull request #953 from zielmicha/vfork
...
osproc: increase stack size from 8k to 64k and disable useClone default
2014-02-23 21:43:00 +01:00
Michał Zieliński
6712aa6e38
osproc: use fork by default on Linux, clone if requested by useClone flag
2014-02-23 21:06:40 +01:00
Michał Zieliński
95eb2b88e6
osproc: increase stack size from 8k to 64k
2014-02-23 21:01:03 +01:00
Andreas Rumpf
46967f921a
Merge pull request #917 from zielmicha/vfork
...
osproc: Raise exception if execv fails in child process
2014-02-23 19:49:19 +01:00
Michał Zieliński
1f376d8594
osproc: use push stacktrace:off instead of nostackframe
2014-02-18 20:22:40 +01:00
Michał Zieliński
4c09fc110f
osproc: make failed execv an exception (when using fork or clone)
...
startProcessAuxFork creates a pipe, which is used by a child to pass
an error code if execv fails.
2014-02-15 15:09:06 +01:00
Araq
cf544f6a85
fixes #811
2014-02-14 22:37:36 +01:00
Araq
f95a8df243
fixes #811
2014-02-14 22:19:40 +01:00
Michał Zieliński
cd2bd7fa7b
osproc: use clone with CLONE_VM on Linux for faster process spawning
2014-02-14 15:50:28 +01:00
Michał Zieliński
820fdd6348
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-02-09 15:34:18 +01:00
Araq
8215a32edd
case consistency for -d:useWinAnsi
2014-02-05 23:46:55 +01:00
Araq
561f6c2d2f
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-02-02 01:38:40 +01:00
Araq
38db937193
merged #811 against devel
2014-02-02 01:22:31 +01:00
Michał Zieliński
11053afff8
osproc: fix naming inconsistiences
2014-01-26 22:30:20 +01:00
Michał Zieliński
e0e0b409e4
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
...
Conflicts:
lib/pure/osproc.nim
2014-01-26 17:06:21 +01:00
Araq
de538deb7a
should compile on netbsd
2014-01-23 20:43:56 +01:00
Michał Zieliński
ad1a0c51e2
Merge branch 'osproc' into devel
...
Conflicts:
lib/posix/posix.nim
lib/pure/osproc.nim
2014-01-20 13:32:20 +01:00
Erik O'Leary
5d8d1ed8bc
Corrected prunesocketset and pruneprocessset
...
fd sets passed to select() were pruning ready FDs rather than pruning
UN-ready FDs.
2014-01-19 10:51:21 -06:00
Araq
73c6efdf66
'nil' as a statement is deprecated, use an empty 'discard' instead
2014-01-19 16:54:59 +01:00
Araq
286f166304
case consistency for linux
2013-12-29 03:32:46 +01:00
Araq
b731e6ef1c
case consistency: cs:partial bootstraps on windows
2013-12-29 03:19:10 +01:00
Araq
438703f59e
case consistency: next steps
2013-12-29 01:13:51 +01:00
Araq
92b8fac94a
case consistency part 4
2013-12-27 23:10:36 +01:00
Araq
a427648c48
case consistency part 2
2013-12-27 16:35:21 +01:00
Araq
2df9b442c6
case consistency part 1
2013-12-27 15:48:53 +01:00
Michał Zieliński
bdb5c4ad35
Introduce poEvalCommand, poUsePath, fix remaining quoting issues.
...
- poUsePath is now an alias for poUseShell.
- poEvalCommand should be used when shell evaluation is really needed.
It passes `command` directly to shell/winapi. Requires `args` parameter
to be empty.
2013-12-21 18:46:51 +01:00
Michał Zieliński
3503f1ca33
Normalize whitespace in osproc.nim.
2013-12-21 18:05:19 +01:00
Michał Zieliński
39cabcdd27
Use quoteShell in stdlib, where appropriate.
2013-12-11 22:27:39 +01:00
Michał Zieliński
b8072bd22e
add quoteShell to osproc.nim
2013-12-10 22:56:29 +01:00
Grzegorz Adam Hankiewicz
0eb0a887d8
Fixes execProcesses wait order. Refs #379 .
...
Closing the stream of the process might terminate it too early for
waitForExit to gather any useful results.
2013-10-27 18:15:42 +01:00
Reimer Behrends
f103cb4538
Exposed process file handles in osproc module.
...
The file handles of a PProcess instance can now be accessed through
the inputHandle(), outputHandle(), and errorHandle() methods.
Also tidied up documentation for stream accessor procs a bit.
2013-10-12 14:03:29 +02:00
Dominik Picheta
9686d92bfc
Fixed OSError deprecation warnings.
2013-06-26 00:00:07 +01:00
Dominik Picheta
bacb20a379
Deprecated OSError, and modified it to require an explicit OS error code.
...
The deprecated functions include the OSError and OSErrorMsg, the name did not change however the signature of the new functions did. They now require a TOSErrorCode value be passed to them. This value can be retrieved using OSLastError. The reason this was done is because on Windows any win api call can reset the last error code to 0, this change allows the user to immediately grab the error code and worry about the string representation later if needs be.
2013-06-25 20:10:28 +01:00
Araq
baf89e3d66
GC'ed wide strings for windows
2013-05-20 02:17:24 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28
Removes executable bit for text files.
2013-03-16 23:53:07 +01:00
Dominik Picheta
d9d98512e0
Fixed osproc.execCmdEx; tester should now succeed.
2013-01-28 00:32:36 +00:00