davidfrantz / force

Framework for Operational Radiometric Correction for Environmental monitoring
GNU General Public License v3.0
173 stars 50 forks source link

Force-higher-level doesn't catch keyboard interrupt #172

Closed ernstste closed 2 years ago

ernstste commented 2 years ago

I am running some Python code using UDF in the higher level module and it doesn't seem like FORCE is able to catch keyboard interrupt signals (ctrl+c) to exit. Not sure whether this is specifically related to higher-level, but I remember it happened to me before (not sure which module, but definitely not using UDF). Only option to terminate seems to be sending term/kill signals through top/htop at the moment. This has not always been the case.

davidfrantz commented 2 years ago

Hi Stefan,

yes, killing with crtl+c worked in the past. It stopped working when we started to link the C program against python to allow for the UDF stuff. I have no idea why this happens and unfortunately, I have no idea on how to fix this...

I am labeling this as help wanted in the slight hope that someone reading this might know what to do. There is not much else I can do at the moment...

Florian-Katerndahl commented 2 years ago

Hey @ernstste & @davidfrantz,

I might have a solution for the bug (if I understood the problem correctly). While testing, I was able to terminate the UDF-process with SIGINT, i.e. ctrl+c. I can't tell, whether this is indeed the correct way, so maybe take the solution with a grain of salt?!

Cheers, Florian

grafik

davidfrantz commented 2 years ago

Hi all,

Florian solved this issue :)

Many Thanks, this is much appreciated! David