We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am running a python script using shell.run()
But even after interrupt() or even shutdown(), the subprocess spawned inside the python script still keeps running.
interrupt()
shutdown()
val result = shell.run(command) Timber.d("Exit Code ${result.exitCode}") //Correctly receives non zero exit code.
Is this an issue with signal forwarding or am I doing anything wrong?
init { main.viewModelScope.launch { main.eventFlow.collect{ when(it){ is ViewModelEvent.CancelProcess -> { CoroutineScope(Dispatchers.IO).launch { //Event is fired shell.interrupt() } } else -> {} } } } } shell = Shell("/path/to/sh") fun runCommandForShareWithEnv(command: String){ CoroutineScope(Dispatchers.IO).launch{ val result = shell.run(command) Timber.d("Exit Code ${result.exitCode}") //Correctly receives non zero exit code. } }
The text was updated successfully, but these errors were encountered:
This is for a FOSS project. https://github.com/cryptrr/AutoPie
Sorry, something went wrong.
No branches or pull requests
I am running a python script using shell.run()
But even after
interrupt()
or evenshutdown()
, the subprocess spawned inside the python script still keeps running.Is this an issue with signal forwarding or am I doing anything wrong?
The text was updated successfully, but these errors were encountered: