factor / factor

Factor programming language
https://factorcode.org/
BSD 2-Clause "Simplified" License
1.65k stars 210 forks source link

Signals are passed through from child processes? #1595

Open mrjbq7 opened 8 years ago

mrjbq7 commented 8 years ago

I launched the (old? new?) shell vocabulary from Factor, I started another Factor, then ran another shell, then started another Factor, then a single Ctrl-C interrupted all of them.

$ ./factor -run=shell
$ ./factor
Factor 0.98 x86.64 (1744, heads/master-676168cabc, Tue Mar  8 07:54:56 2016)
[Clang (GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29))] on macosx
IN: scratchpad "shell" run
Loading resource:extra/shell/shell.factor
Loading resource:extra/shell/parser/parser.factor
$ ./factor
Factor 0.98 x86.64 (1744, heads/master-676168cabc, Tue Mar  8 07:54:56 2016)
[Clang (GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29))] on macosx
IN: scratchpad ^CInterrupted
Starting low level debugger...
Interrupted
Basic commands:
  q ^D             -- quit Factor
  c                -- continue executing Factor - NOT SAFE
  t                -- throw exception in Factor - NOT SAFE
  .s .r .c         -- print data, retain, call stacks
Starting low level debugger...
  help             -- full help, including advanced commands

> Basic commands:
  q ^D             -- quit Factor
  c                -- continue executing Factor - NOT SAFE
  t                -- throw exception in Factor - NOT SAFE
  .s .r .c         -- print data, retain, call stacks
  help             -- full help, including advanced commands

> Interrupted
Starting low level debugger...
Basic commands:
  q ^D             -- quit Factor
  c                -- continue executing Factor - NOT SAFE
  t                -- throw exception in Factor - NOT SAFE
  .s .r .c         -- print data, retain, call stacks
  help             -- full help, including advanced commands
erg commented 8 years ago

One of the modes in setup-process-group should work.