Skip to content

Commit

Permalink
CLEANUP: mworker/cli: add comments about pcli_find_and_exec_kw()
Browse files Browse the repository at this point in the history
Add a comment about the pcli_find_and_exec_kw().
  • Loading branch information
wlallemand committed Dec 7, 2023
1 parent 1c1bb8e commit 75a51df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,8 +2453,13 @@ static int pcli_prefix_to_pid(const char *prefix)
return -1;
}

/* Return::
* >= 0 : number of words to escape
/*
* pcli_find_and_exec_kw() parses a command for the master CLI. It looks for a
* prefix or a command that is handled directly by the proxy and never sent to
* a worker.
*
* Return:
* >= 0 : number of words that were parsed and need to be skipped
* = -1 : error
*/
int pcli_find_and_exec_kw(struct stream *s, char **args, int argl, char **errmsg, int *next_pid)
Expand Down

0 comments on commit 75a51df

Please sign in to comment.