File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,6 @@ func (m *Machine) startVMM(ctx context.Context) error {
320
320
}()
321
321
322
322
// Set up a signal handler and pass INT, QUIT, and TERM through to firecracker
323
- vmchan := make (chan error )
324
323
sigchan := make (chan os.Signal )
325
324
signal .Notify (sigchan , os .Interrupt ,
326
325
syscall .SIGQUIT ,
@@ -329,13 +328,9 @@ func (m *Machine) startVMM(ctx context.Context) error {
329
328
syscall .SIGABRT )
330
329
m .logger .Debugf ("Setting up signal handler" )
331
330
go func () {
332
- select {
333
- case sig := <- sigchan :
334
- m .logger .Printf ("Caught signal %s" , sig )
335
- m .cmd .Process .Signal (sig )
336
- case err = <- vmchan :
337
- m .errCh <- err
338
- }
331
+ sig := <- sigchan
332
+ m .logger .Printf ("Caught signal %s" , sig )
333
+ m .cmd .Process .Signal (sig )
339
334
}()
340
335
341
336
// Wait for firecracker to initialize:
You can’t perform that action at this time.
0 commit comments