Commit graph

2746 commits

Author SHA1 Message Date
Kris Katterjohn
892a3e92f3 Remove some unused variables 2017-03-14 15:51:13 -05:00
Daniel Kochmański
71f71a5924 Merge branch 'develop' into refactor-run-program 2017-03-13 21:24:28 +01:00
Fabrizio Fabbri
f0ae1b2d63 Reduce warning with clang compiler. 2017-02-25 02:40:03 +01:00
Daniel Kochmański
a9eb112a99 file.d: fix invalid predicate call 2017-02-23 20:19:46 +01:00
Daniel Kochmański
307d6b5c2d unicode: initialize array correctly
Fix sent by Jerry James.
2017-02-23 20:18:55 +01:00
Daniel Kochmański
488797c910 don't duplicate parent_error 2017-02-21 08:59:05 +01:00
Daniel Kochmański
5e2679e5fc spawn-subprocess: on error signal condition 2017-02-21 08:36:24 +01:00
Daniel Kochmański
000b6b0b00 subprocess: windows: handle NIL as a stream argument 2017-02-21 07:46:43 +01:00
Daniel Kochmański
abf580c9e4 external process: handle sigstop / sigcont in process
New state "resumed" added.
2017-02-20 15:21:26 +01:00
Daniel Kochmański
412770daac spawn-subprocess: duplicate parent_error fd
Handler needs to be duplicated if we want to have separate stream for
error.
2017-02-20 11:39:02 +01:00
Daniel Kochmański
d6b0354772 run-program: add hack for installing signal-handler 2017-02-19 18:25:03 +01:00
Daniel Kochmański
a92c50fe44 external-process: add sigchld handler
It's not installed by default yet due to a kludge with our interrupt
interface.
2017-02-19 17:55:27 +01:00
Daniel Kochmański
4554336fae cosmetic 2017-02-19 14:09:56 +01:00
Daniel Kochmański
f0ad7b9550 killpid: add internal interface to kill 2017-02-19 13:47:58 +01:00
Daniel Kochmański
500a7b7d6b external-process: move terminate-process outside the core 2017-02-19 13:21:58 +01:00
Daniel Kochmański
786039ca97 cosmetic fixes(2) 2017-02-19 12:51:35 +01:00
Daniel Kochmański
40f47f04aa cosmetic fixes 2017-02-19 12:51:23 +01:00
Daniel Kochmański
bcacc6bdb0 si_wait: move to external, its called from the outside 2017-02-19 11:12:22 +01:00
Daniel Kochmański
91c45d09cd dpp: always set zero-th variable with values 2017-02-19 11:10:30 +01:00
Daniel Kochmański
333c23ad4c external-process: move external-process-wait outside the core 2017-02-19 07:59:41 +01:00
Daniel Kochmański
b4affb9302 ecl_waitpid: promote to internal global function si_waitpid 2017-02-19 07:45:25 +01:00
Daniel Kochmański
22ebecd7d0 run-program-inner: argv is (command . argv) 2017-02-18 20:45:43 +01:00
Daniel Kochmański
ce111619cf run-program: provide simple interface run-program-inner
Both run-program and run-program-inner work on same interface
si:spawn-subprocess.
2017-02-18 20:31:03 +01:00
Daniel Kochmański
127af0e59a prepare-args: revert, its create process responsibility 2017-02-18 20:27:46 +01:00
Daniel Kochmański
6ff556b707 core: bring bad old system function (3) 2017-02-18 20:25:51 +01:00
Daniel Kochmański
4aaadf0545 core: bring bad old system function 2017-02-18 20:25:17 +01:00
Daniel Kochmański
f7e224b84e external-process: remove interface ties from the core
We are stopping to handle sigchld for time being because it was too
tightly coupled with core.

Internal interface wait-for-all-processes is removed as well as eager
update of process state.
2017-02-18 15:04:10 +01:00
Daniel Kochmański
039f49a02e run-program: windows: sanitize args 2017-02-17 19:04:45 +01:00
Daniel Kochmański
d07fbcb9fd run-program: windows: args 2017-02-17 19:03:08 +01:00
Daniel Kochmański
ca08f94430 cosmetic 2017-02-17 18:45:04 +01:00
Daniel Kochmański
10242910f9 Merge branch 'develop' into refactor-run-program 2017-02-17 18:30:32 +01:00
Daniel Kochmański
ee10aa7313 run-program: error stream direction is output 2017-02-17 17:58:13 +01:00
Daniel Kochmański
1360bc1306 cosmetic: add comment 2017-02-17 17:25:12 +01:00
Daniel Kochmański
212a60e9bc run-program: if gray-stream passed, propose continuation
If execution is continued, new stream is created.
2017-02-17 17:24:19 +01:00
Daniel Kochmański
76e503ed7a run-program: if gray-stream passed, propose continuation
If execution is continued, new stream is created.
2017-02-17 17:22:26 +01:00
Daniel Kochmański
2fb64f6d82 run-program: process passed arguments properly 2017-02-17 16:49:32 +01:00
Daniel Kochmański
d8c4da22fc run-program: use previously prepared arguments 2017-02-17 16:24:48 +01:00
Daniel Kochmański
86faf44d2a run-program: initial separation (logic / low-level interface) 2017-02-17 15:21:31 +01:00
Daniel Kochmański
6fe66843de cosmetic: be explicit about comments 2017-02-17 14:19:51 +01:00
Daniel Kochmański
d9a715d7da cleanup: remove dead code (2) 2017-02-17 14:18:45 +01:00
Daniel Kochmański
dfa4d36384 cleanup: remove dead code 2017-02-17 14:18:27 +01:00
Daniel Kochmański
9e4370bd88 encodings: ommited file 2017-02-17 08:57:58 +01:00
Daniel Kochmański
37083b5836 encodings: typo and more exact proclamation
by mistake make-encoding was bound to load-encoding. Also we have
proclaimed, that make-encoding always returns hash-table.
2017-02-17 08:57:05 +01:00
Daniel Kochmański
091d53626b encoding: typo 2017-02-16 21:31:51 +01:00
Daniel Kochmański
1b90599696 encodings: get rid of spurious function
We don't need explicit si_make_encoding.
2017-02-16 21:29:42 +01:00
Daniel Kochmański
bdc75e42da encodings: don't fake ext:make-encoding in dispatch table
si_make_encoding was bound to ext:make-encoding before version in
iolib.lsp was overwriting it. That caused maybe_fix_console to fail on
Windows due to infinite concurrency (si_make_encoding called itself,
because iolib.lsp wasn't called yet).

Fixes #160.
2017-02-16 20:44:07 +01:00
Erik Bray
47b1e98272 In flisten check that the stream is not in an error state, as well as not eof
(The latter doesn't necessarily imply the former)
2017-02-09 18:41:40 +01:00
Kris Katterjohn
2c651a9ecd Improve some error messages for functions of exactly one variable
This changes
  "the value of the first argument"
to
  "the value of the only argument"
in some type-error error messages for functions accepting exactly
one argument.
2017-02-07 16:19:17 -06:00
Kris Katterjohn
98969d14ff Fix some more error messages mentioning the wrong function names
array-rank  - mentioned array-dimension instead
denominator - mentioned numerator instead
set         - mentioned setq instead
2017-02-07 16:17:26 -06:00
Kris Katterjohn
10e3b8c39d Fix error message in OPEN-SERVER-STREAM
It mentioned OPEN-CLIENT-STREAM instead.
2017-02-05 13:02:55 -06:00