Fix redundancy in tty-listener

release
Eduardo Cavazos 2007-11-15 23:09:38 -06:00
parent f24abc72d1
commit 565f97950a
2 changed files with 15 additions and 7 deletions

View File

@ -40,9 +40,8 @@ USING: io io.files io.streams.lines io.streams.plain io.streams.duplex
listener ; listener ;
: tty-listener ( tty -- ) : tty-listener ( tty -- )
[ <file-reader> <line-reader> ] [ <file-reader> ] [ <file-writer> ] bi <duplex-stream>
[ <file-writer> <plain-writer> ] [ listener ] with-stream ;
bi <duplex-stream> [ listener ] with-stream ;
: forever ( quot -- ) [ call ] [ forever ] bi ; : forever ( quot -- ) [ call ] [ forever ] bi ;

View File

@ -8,9 +8,22 @@ Raptor Linux is a mod of Ubuntu 6.06 (Dapper Drake)
This is unlikely to work on another version of Ubuntu, much less This is unlikely to work on another version of Ubuntu, much less
another Linux distribution. another Linux distribution.
*** Features ***
* /sbin/init is replaced with Factor
* Virtual terminals managed by Factor
* Listeners run on virtual terminals
* Native support for static ip networking
* Crontab replacement
*** Install *** *** Install ***
# mkdir -v /etc/raptor
# cp -v /scratch/factor/extra/raptor/{config,cronjobs}.factor /etc/raptor
( scratchpad ) USE: raptor ( scratchpad ) USE: raptor
( scratchpad ) reload-raptor-config
( scratchpad ) save ( scratchpad ) save
# mv -v /sbin/{init,init.orig} # mv -v /sbin/{init,init.orig}
@ -19,10 +32,6 @@ another Linux distribution.
# cp -v /scratch/factor/factor.image /sbin/init.image # cp -v /scratch/factor/factor.image /sbin/init.image
# mkdir -v /etc/raptor
# cp -v /scratch/factor/extra/raptor/config.factor /etc/raptor/config.factor
*** Static IP networking *** *** Static IP networking ***
If you use a static IP in your network then Factor can take care of If you use a static IP in your network then Factor can take care of