cctools
Functions
change_process_title.h File Reference

Change the title of a process in ps and top. More...

Go to the source code of this file.

Functions

void change_process_title_init (char **argv)
 Intialize the ability to change the process title. More...
 
void change_process_title (const char *fmt,...)
 Change the process title. More...
 

Detailed Description

Change the title of a process in ps and top.

This module only works on Linux, and has no effect on other platforms. change_process_title_init must be called once before processing arguments, and then change_process_title may be called many times to change the title.

Function Documentation

void change_process_title_init ( char **  argv)

Intialize the ability to change the process title.

Parameters
argvThe argument vector passed to the main() function.
void change_process_title ( const char *  fmt,
  ... 
)

Change the process title.

Parameters
fmtA printf-style formatting string.