Re: shutdown task not triggered on gnunet-arm -e

[email protected]
Newsgroups gmane.network.gnunet.devel
Message-ID <[email protected]>
Ok, I understand.

Sorry it was not clear:

my main issue was the function registered via
GNUNET_SCHEDULE_add_shutdown not firing - even if the signal
handler from gnunet is in place.


On Wed, Oct 26, 2022 at 10:22:27AM +0200, Christian Grothoff wrote:
> You should never add your own signal handler, GNUNET_PROGRAM_run() does that
> already, by adding your own you remove the GNUnet signal handler and thus
> break the shutdown logic.
> 
> -Christian
> 
> On 10/26/22 10:15, [email protected] wrote:
> > When running the service with gnunet-arm -i svc, the function added with
> > GNUNET_SCHEDULER_add_shutdown is not being run when issuing gnunet-arm -k
> > svc
> > 
> > If I add a sigterm handler and do GNUNET_SCHEDULER_shutdown there, it
> > hangs and I have to sigint (and it doesnt halt).
> > 
> > If I run the service directly (without gnunet-arm) the shutdown task
> > gets triggered.
> > 
> > Is this expected behavior?
> > 
> > Is there a recommended way to add teardown code when using gnunet-arm?
> > 
> > I'm on 1567c9472b917a097cace08a7b08fc724e14f381
> > 
> > thanks,
> > l
>
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEWahEpISsESU9Oj6dzcvSTdHQ4AEFAmNZIdIACgkQzcvSTdHQ
4AGeYQgAmKLAzBApkx8Z9V5IQao1AyrG7kpKK+FWyUld5QLVtb2CkN+MOUJxvvu/
xzdATwoveO2Wlnuy5XztHiZyh+UQ1uqZd9zm+oxQ0HIn35/XJO22AiLYzAB+6XL7
VEyCr3fq0xFBPOVzEReIIxALOTjWNL1K3JhUC0DdPyblfF1ZhgFYA2wLDYOt8aSk
Qasmh16aZFjFyReAzP7XUgNL+vkxwDuFVuDOvr7/jRAHrvqVhpdSAfgGZXS7rjhn
YmSeVFdkSk4xEzKztYwkIUBJjQxOv/3cTBIX2ZVR5QLNe+xjPjTulBO+Ks9mn2nm
ePIW9iJEFxNmWpSV9F4jDlJZPpaaDQ==
=Uxid
-----END PGP SIGNATURE-----
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.