Comments (4)
same to me.
I can reproduce it on ubuntu 18.04.
According to https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal
On Linux, child processes of child processes will not be terminated when attempting to kill their parent. This is likely to happen when running a new process in a shell or with the use of the shell option of ChildProcess
from mediasoup3-record-demo.
on ios device
from mediasoup3-record-demo.
I think this occurs on linux? I can't reproduce it on my local mac.
Will look into it, can you tell me the OS of the server?
from mediasoup3-record-demo.
in gstream file add this code
kill () {
console.log('kill() [pid:%d]', this._process.pid);
this._process.kill('SIGINT');
this.killSubprocesses(this._process.pid)
}
killSubprocesses(pid) {
try {
const output = require('child_process').execSync(pgrep -P ${pid}
).toString();
const pids = output.trim().split('\n');
pids.forEach(subpid => {
process.kill(subpid, 'SIGTERM'); // Send SIGTERM signal to subprocess
killSubprocesses(subpid); // Recursively kill subprocesses of subprocess
});
} catch (err) {
// Ignore errors
}
}
from mediasoup3-record-demo.
Related Issues (20)
- How can I just use FFmpeg command in terminal to record?
- How can I record in another computer instead of the computer which the medaisoup server is running? HOT 1
- Bash script with ffmpeg ? HOT 2
- recording a stream with the mediasoup demo ?
- Websocket connection failing HOT 7
- recorded file is of 0 bytes HOT 1
- Firefox not recording HOT 2
- when we disable video and enable back FFmpeg doesn't add the video track back. HOT 3
- Handle getUserMedia errors HOT 1
- Multiple codec support
- Docker support
- npm install error HOT 1
- Does it supports individual audio recording of room HOT 1
- Unhandle Promise Rejection: HOT 2
- work Compilation Error with c++ standard HOT 1
- Firefox does not allow to camera
- On record, video and sound does not match HOT 1
- FFmpeg error "dimensions not set" HOT 1
- ffmpeg child_process close unwanted
- refactor server with Typescript HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediasoup3-record-demo.