Skip to content

Commit

Permalink
use process.kill
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed May 14, 2024
1 parent 83b38d6 commit 9977173
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pkg/pipeline/source/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"fmt"
"math/rand"
"net/url"
"os"
"os/exec"
"strings"
"time"
Expand Down Expand Up @@ -116,12 +115,9 @@ func (s *WebSource) Close() {

if s.xvfb != nil {
logger.Debugw("closing X display")
if err := s.xvfb.Process.Signal(os.Interrupt); err != nil {
logger.Errorw("failed to interrupt xvfb", err)
} else {
_ = s.xvfb.Wait()
s.xvfb = nil
}
_ = s.xvfb.Process.Kill()
_ = s.xvfb.Wait()
s.xvfb = nil
}

if s.pulseSink != "" {
Expand Down

0 comments on commit 9977173

Please sign in to comment.