Merge pull request #323 from projectdiscovery/fdmax-small-improvement
fdmax => autofdmax + silent failmaster
commit
8e570bd937
|
@ -3,18 +3,13 @@ package main
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/projectdiscovery/fdmax"
|
||||
// Attempts to increase the OS file descriptors - Fail silently
|
||||
_ "github.com/projectdiscovery/fdmax/autofdmax"
|
||||
"github.com/projectdiscovery/gologger"
|
||||
"github.com/projectdiscovery/subfinder/pkg/runner"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Increase the OS file descriptors
|
||||
err := fdmax.Set(fdmax.UnixMax)
|
||||
if err != nil {
|
||||
gologger.Fatalf("Could not set the max file descriptors for the current process: %s\n", err)
|
||||
}
|
||||
|
||||
// Parse the command line flags and read config files
|
||||
options := runner.ParseOptions()
|
||||
|
||||
|
|
Loading…
Reference in New Issue