We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d99a68 commit c803f90Copy full SHA for c803f90
cmd/geth/consolecmd.go
@@ -19,10 +19,8 @@ package main
19
import (
20
"fmt"
21
"os"
22
- "os/signal"
23
"path/filepath"
24
"strings"
25
- "syscall"
26
27
"github.com/ethereum/go-ethereum/cmd/utils"
28
"github.com/ethereum/go-ethereum/console"
@@ -231,13 +229,10 @@ func ephemeralConsole(ctx *cli.Context) error {
231
229
utils.Fatalf("Failed to execute %s: %v", file, err)
232
230
}
233
234
- // Wait for pending callbacks, but stop for Ctrl-C.
235
- abort := make(chan os.Signal, 1)
236
- signal.Notify(abort, syscall.SIGINT, syscall.SIGTERM)
237
238
go func() {
239
- <-abort
240
- os.Exit(0)
+ stack.Wait()
+ console.Stop(false)
241
}()
242
console.Stop(true)
243
0 commit comments