merge from gcc
This commit is contained in:
parent
9e1a94f4a1
commit
62b06a9e17
5 changed files with 15 additions and 39 deletions
|
@ -20,7 +20,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_PRCTL_SET_NAME
|
||||
#ifdef HAVE_SYS_PRCTL_H
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
#include "ansidecl.h"
|
||||
|
@ -39,7 +39,7 @@ but defined for compatibility with BSD.
|
|||
void
|
||||
setproctitle (const char *name ATTRIBUTE_UNUSED, ...)
|
||||
{
|
||||
#ifdef HAVE_PRCTL_SET_NAME
|
||||
#ifdef PR_SET_NAME
|
||||
/* On Linux this sets the top visible "comm", but not necessarily
|
||||
the name visible in ps. */
|
||||
prctl (PR_SET_NAME, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue