NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: copyparty ignores signals (inc. SIGINT)



On Sat, 13 Dec 2025 09:04:27 +0000 (UTC)
RVP <rvp%SDF.ORG@localhost> wrote:

> On Sat, 13 Dec 2025, Sad Clouds wrote:
> 
> > I think your example may not be portable [...]
> >
> 
> Wasn't aiming for portability, just trying for a simple way to replicate this:
> (Run as: python3 copyparty-sfx.py)
>

That is fine, I'm just pointing out the possible reasons. Looking at
the output of the ps command may not tell the whole story, someone may
need to dig through the code.

I block SIGINT and SIGTERM in some of my own code to handle cleanup
when termination a threaded process. I test this code across all major
OSes including NetBSD and have not observed broken signal behavior.
However, as mentioned previously, I block those signals in main()
before creating worker threads, as recommended in "Programming with
POSIX Threads" by Butenhof.


Home | Main Index | Thread Index | Old Index