1,603 questions
1
vote
2
answers
92
views
How do I return the PID of an osascript call from within a function (or how do I create a persistent notification I can kill later in the script)?
I'm using Bash 3.2 in macOS Tahoe. I've hacked together this function to show an informational dialog:
showDialog(){
local strDialogText=$1
local intDialogSeconds=$2
IFS='' read -r -d '' strJS <&...
0
votes
0
answers
63
views
How to avoid stopping all processes that started by one systemd service when OOM happens?
In my env, some child processes are started by one systemd service, if there is something wrong with one child process and OOM is triggered by it, all the processes (all the child processes and the ...
1
vote
1
answer
120
views
Understanding behavior of DBus with respect to killing the process that used DBus to register a name
Take this simple program in Haskell
{-# LANGUAGE OverloadedStrings #-}
import Control.Exception (finally)
import Control.Monad (forever)
import Xmobar (tenthSeconds)
import DBus.Client
startServer' :...
1
vote
1
answer
81
views
Stored Procedure Efficiency Testing
I work with a BI software that generates dashboards for clients. We build charts for the clients by creating stored procedures under our own schema for rendering. Each stored procedure is a SQL query ...
1
vote
0
answers
100
views
Node process keeps respawning after killing
I have a node process that was originally started with the following command line:
nohup npm run serve-prod &
The process runs on port 5003 and I can see it listed with ps as follows:
ps -ef | ...
1
vote
0
answers
143
views
xfce4-terminal cannot be killed
From a Python program, I start xfce4-terminal as a subprocess. When calling .terminate(), xfce4-terminal is still there. Not nice. So I tried to kill it more abruptly - surprisingly, the corresponding ...
3
votes
1
answer
166
views
How to unit-test a program using fork/exec with libcheck?
I'm trying to test a program, that forks and execs with libcheck (https://github.com/libcheck/check).
When I run the program normally it is able to create the subprocess waits a bit and then kills it ...
0
votes
0
answers
31
views
use os.kill(p.pid, signal.SIGTERM) make my main process not work
def __remove_progress_without_lock(self, k):
import os
import signal
if k in self.progress_map:
p = self.progress_map[k]
if p.is_alive():
# p.terminate()
...
0
votes
1
answer
64
views
Custom Threading Timer Kill Function Python
I have a queue with threading setup. I need it to kill the process if it runs longer than 2900s which works fine. I'm wanting to write out information if it has to kill the process because it ran to ...
0
votes
1
answer
74
views
Cannot kill Popen process [duplicate]
I have a Python program with the following structure and necessary imports:
def startLogger(logger_dir):
command0 = 'adb logcat -c'
command1 = 'adb logcat'
command2 = 'python3 '+logger_dir+...
0
votes
0
answers
75
views
killing a TCl/tk process cleanly in Windows
I'm having to kill a TCL/tk process in the task manager
and I want to do it within the batch file.
Here is the batch file that calls up the TCL/tk process.
START /B sbcl-shen.exe
C:\ActiveTcl\bin\wish....
0
votes
0
answers
25
views
Kill mouse event
I am wondering is there a way with Python that
we can detect process that use a click event so we can kill them.
That would help in the step of an anti cheat
I asked my friend if he can code something ...
0
votes
0
answers
89
views
.NET Process.OutputDataReceived still receiving data after unsubscribe the Event Handler and Kill the Process
Please. I need to read data from a process asynchronously because sometimes data is received indefinitely and cannot be read synchronously. When I have read enough characters, I unsubscribe from the ...
1
vote
1
answer
101
views
C++ kill() crashes linux to login screen
i am having problems with a project of mine,
i am creating child processes with fork and then terminating them with kill(pid,SIGINT) and then restarting them
after the second time interrupting the ...
0
votes
2
answers
56
views
How kill previous activities
In my app I have in the mainActivity intent that move mw to the second activity and in the second activity I have also intent that move me to the main activity.
Now when I press the back button in my ...