ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/etp.c
(Generate patch)

Comparing libeio/etp.c (file contents):
Revision 1.11 by root, Sun May 1 17:15:45 2016 UTC vs.
Revision 1.13 by root, Tue Aug 14 11:44:53 2018 UTC

39 39
40#if HAVE_SYS_PRCTL_H 40#if HAVE_SYS_PRCTL_H
41# include <sys/prctl.h> 41# include <sys/prctl.h>
42#endif 42#endif
43 43
44#ifdef EIO_STACKSIZE
45# define X_STACKSIZE EIO_STACKSIZE
46#endif
47#include "xthread.h"
48
49#ifndef ETP_API_DECL 44#ifndef ETP_API_DECL
50# define ETP_API_DECL static 45# define ETP_API_DECL static
51#endif 46#endif
52 47
53#ifndef ETP_PRI_MIN 48#ifndef ETP_PRI_MIN
318static void ecb_noinline ecb_cold 313static void ecb_noinline ecb_cold
319etp_proc_init (void) 314etp_proc_init (void)
320{ 315{
321#if HAVE_PRCTL_SET_NAME 316#if HAVE_PRCTL_SET_NAME
322 /* provide a more sensible "thread name" */ 317 /* provide a more sensible "thread name" */
323 char name[15 + 1]; 318 char name[16 + 1];
324 const int namelen = sizeof (name) - 1; 319 const int namelen = sizeof (name) - 1;
325 int len; 320 int len;
326 321
327 prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0); 322 prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0);
328 name [namelen] = 0; 323 name [namelen] = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines