summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGary Houston <ghouston@arglist.com>1997-06-01 00:44:24 +0000
committerGary Houston <ghouston@arglist.com>1997-06-01 00:44:24 +0000
commit115b09a50439e841041555bf1f4d6837108f8a6f (patch)
tree5a2842670d6b1068717775d3236ade688f8614d3 /NEWS
parente1a191a8ca07dd14b956f6e349044d3dabb424c5 (diff)
downloadguile-115b09a50439e841041555bf1f4d6837108f8a6f.tar.gz
provide documentation for sigaction
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS26
1 files changed, 25 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 291c6edb7..8350d1cd0 100644
--- a/NEWS
+++ b/NEWS
@@ -46,7 +46,31 @@ of SCSH's regular expression functions. They are:
if an error occurs.
** A new procedure `sigaction' can be used to install signal handlers
-(documentation to be provided).
+
+(sigaction signum [action] [flags])
+
+signum is the signal number, which can be specified using the value
+of SIGINT etc.
+
+If action is omitted, sigaction returns a pair: the CAR is the current
+signal hander, which will be either an integer with the value SIG_DFL
+(default action) or SIG_IGN (ignore), or the Scheme procedure which
+handles the signal, or #f if a non-Scheme procedure handles the
+signal. The CDR contains the current sigaction flags for the handler.
+
+If action is provided, it is installed as the new handler for signum.
+action can be a Scheme procedure taking one argument, or the value of
+SIG_DFL (default action) or SIG_IGN (ignore), or #f to restore
+whatever signal handler was installed before sigaction was first used.
+Flags can optionally be specified for the new handler (SA_RESTART is
+always used if the system provides it, so need not be specified.) The
+return value is a pair with information about the old handler as
+described above.
+
+This interface does not provide access to the "signal blocking"
+facility. Maybe this is not needed, since the thread support may
+provide solutions to the problem of consistent access to data
+structures.
Changes in Guile 1.1 (Fri May 16 1997):