Function libuv::misc::set_process_title

source ·
pub fn set_process_title(title: &str) -> Result<(), Box<dyn Error>>
Expand description

Sets the current process title. You must call setup_args before calling this function on Unix and AIX systems. If setup_args has not been called on systems that require it, then ENOBUFS is returned. On platforms with a fixed size buffer for the process title the contents of title will be copied to the buffer and truncated if larger than the available space. Other platforms will return ENOMEM if they cannot allocate enough space to duplicate the contents of title.

This function is thread-safe on all supported platforms.

Returns an error if setup_args is needed but hasn’t been called.