]> gitweb.factorcode.org Git - factor.git/commit
new module unix.signals: app-level signal handlers
authorJoe Groff <arcata@gmail.com>
Tue, 8 Nov 2011 18:15:44 +0000 (10:15 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 8 Nov 2011 18:21:49 +0000 (10:21 -0800)
commitfc7c175c9f64b8a7f11ca62ed9dfbd46371d48b5
tree82ddf1725d1da7dfc7fa8451489b6a6e5d3365c6
parent0c58fd5c2614d348a0bd8a07ffc04016feee0934
new module unix.signals: app-level signal handlers
example:

IN: scratchpad USING: unix.ffi unix.signals ;
Loading resource:basis/unix/signals/signals.factor
IN: scratchpad [ V{ "Me not that kind of orc!" "Me busy, leave me alone!" "Work work" "Zug zug" } pop print flush ] SIGINFO add-signal-handler
IN: scratchpad load: 0.60  cmd: factor 41541 running 0.28u 0.16s
Zug zug
load: 0.71  cmd: factor 41541 running 0.28u 0.16s
Work work
load: 0.71  cmd: factor 41541 running 0.28u 0.16s
Me busy, leave me alone!
load: 0.73  cmd: factor 41541 running 0.28u 0.16s
Me not that kind of orc!
basis/io/backend/unix/unix.factor
basis/unix/ffi/ffi.factor
basis/unix/signals/signals-tests.factor [new file with mode: 0644]
basis/unix/signals/signals.factor [new file with mode: 0644]
vm/os-unix.cpp