Questions tagged [terminate]

For questions regarding the termination of processes, threads, and sessions.

937 questions
14
votes
3 answers

How to kill a Javascript function if it is called again?

I have a search box on my web page that has check boxes in order for the user to filter their results. Only one check box can be checked at once. When a check box is clicked my code runs off and applies the filter to the list and returns the correct…
Win
  • 2,593
  • 3
  • 25
  • 35
13
votes
3 answers

How to terminate AWS EMR Cluster automatically after some time

I currently have a task at hand to Terminate a long-running EMR cluster after a set period of time (based on some metric). Google Dataproc has this capability in something called "Cluster Scheduled Deletion" Listed here: Cluster Scheduled…
h0mer
  • 353
  • 1
  • 4
  • 10
13
votes
7 answers

Terminate a process tree (C for Windows)

This has been asked before but I can't find a definitive answer, in code. I open a process, ProcessA (with PID 1234). This process opens a child process, ProcessAB (PID 5678). After I'm done I terminate ProcessA but I still have the lingering of…
wonderer
  • 3,487
  • 11
  • 49
  • 59
12
votes
3 answers

Can you track when an android application has been terminated?

Looked at android documentation and it appears that we don't have the ability to know when an app shuts down. Whether it was explicitly by the user or automatically by the operating system. Below is the onTerminate() documentation which is only…
Evan Anger
  • 712
  • 1
  • 5
  • 24
12
votes
2 answers

IOS Getting location updates when app terminated without using significantChange

I apologise for the redundancy of this topic, but in spite all the given answers, I can't identify the possibility of getting accuracyBest location updates when the app is terminated. I don't want to use monitoringSignificantChange, I want the best…
scoobyDoo
  • 123
  • 1
  • 5
12
votes
6 answers

GLSL vertex shader cancel render

Can the rendering for a pixel be terminated in a vertex shader. For example if a vertex does not meet a certain requirement cancel the rendering of that vertex?
user346443
  • 4,672
  • 15
  • 57
  • 80
12
votes
3 answers

When is a C++ terminate handler the Right Thing(TM)?

The C++ standard provides the std::set_terminate function which lets you specify what function std::terminate should actually call. std::terminate should only get called in dire circumstances, and sure enough the situations the standard describes…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
11
votes
1 answer

In which thread is the terminate handler called?

In which thread is called the terminate handler: when an exception is thrown inside a noexcept function? when the user call std::terminate()? at start up or destruction of thread? Is it defined in the standard, will I have access to thread_local…
Oliv
  • 17,610
  • 1
  • 29
  • 72
11
votes
1 answer

How to detect Photo Library changes when app was terminated and now restarted?

Using the new Photos Framework, I am able to detect changes to the photo library when the app is running and in the background using photoLibraryDidChange. But when the app is terminated (either by the user or by the system), how can i detect the…
claramelon
  • 141
  • 1
  • 8
10
votes
5 answers

Flash Builder 4.5 debugger terminates | Safari

So it seems all the major browser vendors are sandboxing the flash plugin, and terminating it after a certain amount of inactivity. This is problematic for developers who connect the Flash Builder Debugger to the browser. If you stand on a…
Jack Murphy
  • 2,952
  • 1
  • 30
  • 49
10
votes
1 answer

ipython: exit() statement not working as expected

I am running a script into ipython (1.2.1) and I need it to stop if a certain condition is not met. I tried to use the exit() statement, but it is not behaving as expected. Take for example the following script which I called test.py: if(True): …
valerio
  • 677
  • 4
  • 12
  • 25
10
votes
1 answer

PowerShell won't terminate hung process

I have a scenario where a process is stuck every single Monday morning because of an Oracle database so I tried creating a PowerShell script to run every Monday but regardless of getting an error or not, the process remains. The line I'm attempting…
Patrik Persson
  • 173
  • 1
  • 2
  • 15
10
votes
2 answers

In which cases does program exit with 0x40010004 code?

My program is designed to run on Windows platform. Sometimes it terminates with error. I could not debug it on each computer where it is installed; so I added vectored exception handler to it which sends some information about exception to server.…
cls
  • 501
  • 1
  • 5
  • 18
10
votes
3 answers

pyqt5 - closing/terminating application

I'm working though the pyqt5 tutorial found here Zetcode, PyQt5 As an exercise for myself I'm trying to expand on an example so that I am presented with the same dialog message box regardless of method used to close the app: clicking the 'X' button…
user3548783
  • 175
  • 2
  • 2
  • 9
10
votes
3 answers

Terminate a python script from another python script

I've got a long running python script that I want to be able to end from another python script. Ideally what I'm looking for is some way of setting a process ID to the first script and being able to see if it is running or not via that ID from the…
Nick
  • 2,913
  • 12
  • 40
  • 52
1 2
3
62 63