On Fri, Dec 22, 2023 at 08:38:43PM +0530, rajesh wrote: > That code is useful for debugging with something short, but normally you > shouldn't call printf(3) from a signal handler. > > Yes, it makes sense. I agree about no printfs in signal handler. But > this is a demo to prove that SIGTERM is called and put an entry to > prove the point. > > Also so we leave this as a comment and no need to update shutdown man > pages then? For now I think there's nothing to update, right. > Sorry to bug just trying to understand the process more : ) No problem. Cheers, Alex -- <https://www.alejandro-colomar.es/> Looking for a remote C programming job at the moment.
Attachment:
signature.asc
Description: PGP signature