윈도우에서 동작 안하는 문제 수정

This commit is contained in:
2023-12-08 16:47:14 +09:00
parent 00fa08a739
commit 27dd9226e9
3 changed files with 20 additions and 9 deletions

View File

@ -159,13 +159,17 @@ func (hc *houstonClient) makeOperationQueryRequest() *protos.OperationQueryReque
var selfname string
var selfargs []string
if hc.standalone {
selfname = path.Base(os.Args[0])
selfname = path.Base(filepath.ToSlash(os.Args[0]))
selfargs = os.Args[1:]
} else {
selfname = "houston"
selfargs = []string{}
}
if len(path.Ext(selfname)) > 0 {
selfname = selfname[:len(selfname)-len(path.Ext(selfname))]
}
procs = append(procs, &protos.ProcessDescription{
Name: selfname,
Args: selfargs,