Implementing Runtime.addShutdownHook is not too complicated (some explanations
here https://www.geeksforgeeks.org/jvm-shutdown-hook-java/). It is not an
absolute guarantee as it depends how exactly the process is shutdown.
Question is : what can we do during this hook (must not be too long as th
- **status**: open --> pending
- **assigned_to**: ede
- **Operating System**: --> Windows
- **Milestone**: --> OJ_1.16
- **Comment**:
applications i work with do not save anything without being explicitly told so.
even on windows shutdown. the application simply don't exit and i'll have to
for
I could not see much effect either (same environment as yours).
Seems that the saving dialog appears a fraction of second, but the task killer
is not one to be very patient.
Also I dicovered that tasks in the taskmanager can show their subprocesses :
killing OpenJDK kill the whole process, but s
- **Milestone**: OJ_1.16 --> OJ_future
- **Comment**:
if JVM retrieves a shutdown signal there is little we can do. tried to add
shutdown hooks and such, but JVM ends uncancellable. no way to show a save me
dialog .
if we could find a way to catch the Ctrl+C ("kill") signal before it reaches
t
Regarding Linux, OJ can be launched by console. Closing the console shuts
down Openjump with no saving. Sometimes it can be useful for processes
-Sextante- that can basically divore all memory and freeze OJ . Having a
warning like Kosmo that advice user's that OS is going to shut could be
useful bu