Re: capturing system shutdown signals?

Jeff Cunningham <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <20240426192504.093957a9@delbert>
I found trivial-signal in quicklisp. This looks like just what I was
looking for.  Thanks!

-- Jeff


On Fri, 26 Apr 2024 13:53:14 -0700 (PDT)
Nathan Van Ymeren <[email protected]> wrote:

> Linux shutdown scripts typically send SIGTERM to running processes when the system is shutting
> down.
> 
> In the past I have used the 'trivial-signal library to handle this:
> 
> https://github.com/guicho271828/trivial-signal
> 
> Apr 26, 2024 10:13:12 Jeff Cunningham <[email protected]>:
> 
> > Is there a way to capture a general shutdown signal in a running sbcl-compiled program
> > (Hunchentoot server) so it can gracefully do some house-keeping first? This is running on a
> > Linux platform. I had a binary data file destroyed the other day from improper closure while
> > writing.
> > 
> > Best regards,
> > 
> > -- Jeff
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Sbcl-help mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sbcl-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.