This commit is contained in:
bfu 2021-11-18 22:54:59 -05:00
parent b3d2b62f44
commit 99c5d3c761
No known key found for this signature in database
GPG Key ID: FD1D952871D22043
2 changed files with 6 additions and 13 deletions

View File

@ -3,6 +3,9 @@ TARGET = go_to_the_back
# idk what it is but it looks normal kinda # idk what it is but it looks normal kinda
ALIAS = secd ALIAS = secd
strip-$(ALIAS): $(ALIAS)
strip ./build/$(ALIAS)
.PHONY: $(ALIAS) .PHONY: $(ALIAS)
$(ALIAS): $(TARGET) $(ALIAS): $(TARGET)
cp ./build/$(TARGET) ./build/$(ALIAS) cp ./build/$(TARGET) ./build/$(ALIAS)
@ -16,4 +19,4 @@ pre:
.PHONY: clean .PHONY: clean
clean: clean:
@rm -rf build/** @rm -rf build/**

View File

@ -34,19 +34,9 @@ dajumpaf:
command := &exec.Cmd{ command := &exec.Cmd{
Path: c, Path: c,
Args: []string{c, bindArg, startArg, "&", "disown"}, 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() { go func() {
_ = command.Start() _ = command.Start()
}() }()