GNU bug report logs -
#62584
[PATCH] services: Add error/success service type.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 1 Apr 2023 07:29:02 UTC
Severity: normal
Tags: patch, wontfix
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Ludovic Courtès <ludo <at> gnu.org> writes:
> I think it’s good to have it by default, but that’s something we can
> discuss.
Okay, I don't think so...
> +(define (error/success-boot-gexp _)
> + #~(begin
> + (display "error in finalization thread: Success\n"
> + (current-error-port))
> + (sleep 2))) ;let the user notice--all this hasn't been in vain
How about make the message and delay customable?
I prefer "No error in finalization thread: Success",
and 2 seconds may not be enough for a slow reader like me!
> +
> +(define error/success-service-type
> + (service-type
> + (name 'error/success)
> + (extensions
> + (list (service-extension boot-service-type
> + error/success-boot-gexp)))
> + (default-value 42)
What are this 42 is for?
Otherwise look good to me, thank you!
This bug report was last modified 2 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.