Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
77787802
Unverified
Commit
77787802
authored
Feb 15, 2021
by
Alex Mazalov
Committed by
GitHub
Feb 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: fix js unclean shutdown (#22302)
parent
08c878ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
consolecmd.go
cmd/geth/consolecmd.go
+2
-7
No files found.
cmd/geth/consolecmd.go
View file @
77787802
...
@@ -19,10 +19,8 @@ package main
...
@@ -19,10 +19,8 @@ package main
import
(
import
(
"fmt"
"fmt"
"os"
"os"
"os/signal"
"path/filepath"
"path/filepath"
"strings"
"strings"
"syscall"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/console"
"github.com/ethereum/go-ethereum/console"
...
@@ -218,13 +216,10 @@ func ephemeralConsole(ctx *cli.Context) error {
...
@@ -218,13 +216,10 @@ func ephemeralConsole(ctx *cli.Context) error {
utils
.
Fatalf
(
"Failed to execute %s: %v"
,
file
,
err
)
utils
.
Fatalf
(
"Failed to execute %s: %v"
,
file
,
err
)
}
}
}
}
// Wait for pending callbacks, but stop for Ctrl-C.
abort
:=
make
(
chan
os
.
Signal
,
1
)
signal
.
Notify
(
abort
,
syscall
.
SIGINT
,
syscall
.
SIGTERM
)
go
func
()
{
go
func
()
{
<-
abort
stack
.
Wait
()
os
.
Exit
(
0
)
console
.
Stop
(
false
)
}()
}()
console
.
Stop
(
true
)
console
.
Stop
(
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment