[WBCLIENT] Add process name to the winbind request
cs at samba.org
Fri Nov 2 15:47:10 UTC 2018
On Fri, Nov 02, 2018 at 09:39:57AM +0100, Andreas Schneider via samba-technical wrote:
> currently we send the pid as part of the request from wbclient to winbind.
> Would it make sense to add the process name and log it on the winbind side?
> If you just get logs and don't have access to the box, you would at least have
> a clue which process created the request to winbind.
This would be useful for debugging.
> The idea would be to add a 32byte progname. We could add getprogname() to
> libreplace like:
> #ifndef HAVE_GETPROGNAME
> const char *getprogname(void)
> #ifdef _GNU_SOURCE
> return program_invocation_short_name;
> /* FIXME: Read /proc/<pid>/cmdline??? */
> return "<unknown>";
> Andreas Schneider asn at samba.org
> Samba Team www.samba.org
> GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
More information about the samba-technical