Commit Graph

827 Commits

Author SHA1 Message Date
Dominik Picheta
afb7dbf81a Fixes compilation of asyncio2 on Windows.
Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.
2014-03-14 20:18:51 +00:00
Dominik Picheta
1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Araq
3e056afb1c fixes #993 2014-03-13 22:29:48 +01:00
Araq
1c35fb3c89 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-13 02:52:51 +01:00
Araq
2fc84325c7 should fix the nkExprColonExpr bug in the vm 2014-03-13 02:52:40 +01:00
Dominik Picheta
d2f130c3fc Fix compilation on linux. 2014-03-12 23:19:40 +00:00
Dominik Picheta
d97a397139 Fixed tasyncawait on Windows.
Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
2014-03-12 20:42:36 +00:00
Dominik Picheta
15919b7c98 EOS exception now contains the error code. 2014-03-11 23:06:22 +00:00
Dominik Picheta
2ce07042fd tasyncawait now works on Linux.
Reworked detection of a file descriptor being closed with epoll (in the
case of sockets it is when the remote host disconnects). Ensured that
events are only updated when they change.
2014-03-11 21:53:35 +00:00
Araq
3270676e77 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-10 22:23:38 +01:00
Araq
121553d1a6 osproc compiles again for haiku 2014-03-10 17:32:50 +01:00
Dominik Picheta
a097526956 Fixes to asyncio2 on Linux. 2014-03-09 13:49:38 +00:00
Araq
74549c327e added a warning for htmlgen 2014-03-03 08:17:51 +01:00
Araq
dfeb0e8432 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-02 23:46:32 +01:00
Araq
d4263b1012 bugfix: walkFiles on windows shouldn't yield directories 2014-03-02 11:15:31 +01:00
Dominik Picheta
0d263f155b Fixes sockets2 on Windows. 2014-02-28 19:31:12 +00: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
Dominik Picheta
3b5825e9bc Implemented selector support for asyncio2. 2014-02-22 17:22:19 +00:00
Fabio Cevasco
067c3816ba Rewrote the changes to findAll using if/else 2014-02-22 10:07:37 +01:00
Fabio Cevasco
6621454dec pegs.findAll iterator fix
Modified the findAll iterator so that it continues looking for a match within the input string (bug?).
2014-02-21 14:14:43 +01:00
Michał Zieliński
1f376d8594 osproc: use push stacktrace:off instead of nostackframe 2014-02-18 20:22:40 +01:00
Zahary Karadjov
f13a836972 Merge branch 'devel' of gh:/Araq/Nimrod into devel 2014-02-18 02:46:49 +02:00
Andreas Rumpf
c41687237d Merge pull request #897 from micklat/devel
dynlib: optionally pass RTLD_GLOBAL to dlopen
2014-02-18 01:00:37 +01:00
Zahary Karadjov
765c682c92 fix #204; 2014-02-18 01:19:31 +02:00
Dominik Picheta
5cd9b035b4 Merge branch 'newasync' into devel 2014-02-16 20:03:58 +00:00
Dominik Picheta
17ef758cc3 Fix processing of 'await' with a nnkCall.
Specifically, ``discard readMessages(disp, await disp.accept(server))``
works now, i.e. using 'await' as one of the params to a proc call.
2014-02-16 19:56:17 +00:00
Dominik Picheta
7d2ed73a62 Fixes issues with 'discard' in async macro. 2014-02-16 13:55:06 +00:00
Andreas Rumpf
6f9b0fe712 Merge pull request #921 from gradha/pr_improves_times_format
Improves times.format parsing, fixes #740
2014-02-16 11:56:51 +01:00
Dominik Picheta
fb7598d25a Async readLine now works. Fixes recv issues.
When using MSG_PEEK and data is retrieved ``lpNumberOfBytesRecvd`` will
not be set to the number of bytes read by WSARecv. The buffer must
therefore be checked to ensure it's empty when determining whether
``recv`` shall return "" to signal disconnection as we want to read as
much data as has been received by the system.
2014-02-15 21:13:23 +00:00
Dominik Picheta
de8d473301 Fixed problems with IOCP procs finishing immediately, added await macro. 2014-02-15 14:15:18 +00: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
Grzegorz Adam Hankiewicz
293f356420 Supports parsing format times without separators. Refs #740. 2014-02-15 11:20:00 +01:00
Grzegorz Adam Hankiewicz
bd9e9acdaa Splits token parsing case into separate proc. Refs #740. 2014-02-15 11:02:13 +01:00
Dominik Picheta
66b0582a0b Merge branch 'devel' into newasync 2014-02-14 23:57:10 +00: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
Araq
09c8a51348 bugfix: 'system' on windows is sane 2014-02-14 15:46:30 +01:00
Araq
5d4c048705 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-13 21:30:11 +01:00
Dominik Picheta
7e7f5a6927 Rename PFutureVoid to PFutureBase. 2014-02-12 21:27:00 +00:00
Simon Hafner
e8c87d070a fixed a bug in map for sets 2014-02-10 13:02:47 -06:00
Simon Hafner
0b5c14962e added map to sets 2014-02-10 12:44:44 -06:00
Araq
007d17ce3f more things case consistent 2014-02-10 17:12:25 +01:00
Michał Zieliński
87abc22cc3 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-10 14:40:18 +01:00