mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
They can be close()d explicitly with close-file-descriptor, and will close() on gc, but only explicitly closing the last port on them will close the fileno. Notably needed for network sockets where we open separate input and output ports on the same socket.
23 lines
1.1 KiB
Scheme
23 lines
1.1 KiB
Scheme
|
|
(define-library (chibi process)
|
|
(export exit sleep alarm %fork fork kill execute waitpid system
|
|
process-command-line process-running?
|
|
set-signal-action! make-signal-set
|
|
signal-set? signal-set-contains?
|
|
signal-set-fill! signal-set-add! signal-set-delete!
|
|
current-signal-mask current-process-id parent-process-id
|
|
signal-mask-block! signal-mask-unblock! signal-mask-set!
|
|
signal/hang-up signal/interrupt signal/quit
|
|
signal/illegal signal/abort signal/fpe
|
|
signal/kill signal/segv signal/pipe
|
|
signal/alarm signal/term signal/user1
|
|
signal/user2 signal/child signal/continue
|
|
signal/stop signal/tty-stop signal/tty-input
|
|
signal/tty-output wait/no-hang
|
|
call-with-process-io
|
|
process->string process->sexp
|
|
process->string-list process->output+error)
|
|
(import (chibi) (chibi io) (chibi string) (chibi filesystem))
|
|
(cond-expand (threads (import (srfi 18) (srfi 33))) (else #f))
|
|
(include-shared "process")
|
|
(include "process.scm"))
|