fix `current-subprocess-custodian-mode' for a #f argument

This commit is contained in:
Matthew Flatt 2013-02-14 17:16:05 -07:00
parent 6c49aee3a6
commit ccabbaa36e
2 changed files with 5 additions and 1 deletions

View File

@ -410,6 +410,10 @@
(parameterize ([current-subprocess-custodian-mode 'interrupt])
(try (if (eq? 'windows (system-type)) 'running 'done-error) #t)))
;; check that #f is an allowed mode:
(parameterize ([current-subprocess-custodian-mode #f])
(test #f current-subprocess-custodian-mode))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; process groups
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@ -8917,7 +8917,7 @@ static Scheme_Object *current_subproc_cust_mode (int argc, Scheme_Object *argv[]
{
return scheme_param_config("current-subprocess-custodian-mode", scheme_make_integer(MZCONFIG_SUBPROC_CUSTODIAN_MODE),
argc, argv,
-1, subproc_cust_mode_p, "'interrupt, 'kill, or #f", 0);
-1, subproc_cust_mode_p, "'interrupt, 'kill, or #f", 1);
}
static Scheme_Object *subproc_group_on (int argc, Scheme_Object *argv[])