We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52a61b commit a62bfdbCopy full SHA for a62bfdb
main.go
@@ -194,6 +194,11 @@ func (s *Script) Stop(lock bool) error {
194
signal = syscall.SIGKILL
195
}
196
197
+ // make sure the process is not dead
198
+ if s.command.ProcessState != nil && s.command.ProcessState.Exited() {
199
+ return nil
200
+ }
201
+
202
if err := syscall.Kill(-s.command.Process.Pid, signal); err != nil {
203
log.Printf("error killing previous process: %v", err)
204
return err
zqdgr.config.json
@@ -1,6 +1,6 @@
1
{
2
"name": "zqdgr",
3
- "version": "0.0.4",
+ "version": "0.0.4a",
4
"description": "zqdgr is a quick and dirty Golang runner",
5
"author": "juls0730",
6
"license": "BSL-1.0",
0 commit comments