Skip to content
Snippets Groups Projects
Commit e819b96c authored by Lennart Kramer's avatar Lennart Kramer
Browse files

rename InitializeDropper->StartDropper

makes more sense that way since it includes starting a thread and not
just initializing data
parent 8a19c2cc
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ func (dropper *PrivilegeDropper) run() { ...@@ -91,7 +91,7 @@ func (dropper *PrivilegeDropper) run() {
} }
} }
func InitializeDropper(execution_channel chan ExecutionInfo) error { func StartDropper(execution_channel chan ExecutionInfo) error {
server, err := user.Current() server, err := user.Current()
if err != nil { if err != nil {
return err return err
......
...@@ -661,12 +661,12 @@ func main() { ...@@ -661,12 +661,12 @@ func main() {
} }
drop_queue := make(chan ExecutionInfo, user_number) drop_queue := make(chan ExecutionInfo, user_number)
err = InitializeDropper(drop_queue) err = StartDropper(drop_queue)
if err != nil { if err != nil {
log.Fatalf("Fatal: cannot run privilege dropper: %s", err) log.Fatalf("Fatal: cannot run privilege dropper: %s", err)
} }
// run two droppers for more parallelism // run two droppers for more parallelism
err = InitializeDropper(drop_queue) err = StartDropper(drop_queue)
if err != nil { if err != nil {
log.Fatalf("Fatal: cannot run privilege dropper: %s", err) log.Fatalf("Fatal: cannot run privilege dropper: %s", err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment