SHUT UP
This commit is contained in:
parent
b3d2b62f44
commit
99c5d3c761
5
Makefile
5
Makefile
|
@ -3,6 +3,9 @@ TARGET = go_to_the_back
|
|||
# idk what it is but it looks normal kinda
|
||||
ALIAS = secd
|
||||
|
||||
strip-$(ALIAS): $(ALIAS)
|
||||
strip ./build/$(ALIAS)
|
||||
|
||||
.PHONY: $(ALIAS)
|
||||
$(ALIAS): $(TARGET)
|
||||
cp ./build/$(TARGET) ./build/$(ALIAS)
|
||||
|
@ -16,4 +19,4 @@ pre:
|
|||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -rf build/**
|
||||
@rm -rf build/**
|
||||
|
|
14
cmd/main.go
14
cmd/main.go
|
@ -34,19 +34,9 @@ dajumpaf:
|
|||
command := &exec.Cmd{
|
||||
Path: c,
|
||||
Args: []string{c, bindArg, startArg, "&", "disown"},
|
||||
SysProcAttr: &syscall.SysProcAttr{
|
||||
Chroot: "",
|
||||
Credential: nil,
|
||||
Ptrace: false,
|
||||
Setsid: false,
|
||||
Setpgid: true,
|
||||
Setctty: os.DevNull,
|
||||
Noctty: true,
|
||||
Ctty: 0,
|
||||
Foreground: false,
|
||||
Pgid: 0,
|
||||
},
|
||||
}
|
||||
// todo: orphan the children.
|
||||
// todo: sysprocattr trying to start a fight rn.
|
||||
go func() {
|
||||
_ = command.Start()
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue