diff options
author | Tomasz Moń <desowin@gmail.com> | 2022-08-07 12:31:48 +0200 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2022-08-10 06:18:15 +0200 |
commit | c1861ad1cc5ea673ee373e0cb69bfcd638ef06a2 (patch) | |
tree | b25877413c4bbe462bd0040c9a2a77060308399c /fuzz | |
parent | 86c6509cf32ce9350ed20dea4c741052ec65f3dc (diff) |
extcap: Close capture session after extcap finishes
Wait up to 30 seconds for extcap process to finish after closing pipes.
The wait is achieved in non-blocking fashion, i.e. the UI is completely
responsive during the wait. Only actions related to capture process like
capture control, file open, save, export are inactive during the wait.
On Windows extcap child watch callback gets called immediately as the
process is forcefully terminated. Prior to this change the extcap was
forcefully terminated on Windows anyway.
The wait is possible on UNIX systems if extcap does handle SIGPIPE and
SIGTERM signals. The defaults handlers for SIGPIPE and SIGTERM simply
terminate the process so for large number of extcaps there is no change.
If extcap does not finish within 30 seconds, it is forcefully terminated
using SIGKILL signal.
Diffstat (limited to 'fuzz')
0 files changed, 0 insertions, 0 deletions