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

Comparing libeio/etp.c (file contents):
Revision 1.10 by root, Mon Sep 21 08:01:00 2015 UTC vs.
Revision 1.11 by root, Sun May 1 17:15:45 2016 UTC

35 * and other provisions required by the GPL. If you do not delete the 35 * and other provisions required by the GPL. If you do not delete the
36 * provisions above, a recipient may use your version of this file under 36 * provisions above, a recipient may use your version of this file under
37 * either the BSD or the GPL. 37 * either the BSD or the GPL.
38 */ 38 */
39 39
40#if HAVE_SYS_PRCTL_H
41# include <sys/prctl.h>
42#endif
43
44#ifdef EIO_STACKSIZE
45# define X_STACKSIZE EIO_STACKSIZE
46#endif
47#include "xthread.h"
48
40#ifndef ETP_API_DECL 49#ifndef ETP_API_DECL
41# define ETP_API_DECL static 50# define ETP_API_DECL static
42#endif 51#endif
43 52
44#ifndef ETP_PRI_MIN 53#ifndef ETP_PRI_MIN
309static void ecb_noinline ecb_cold 318static void ecb_noinline ecb_cold
310etp_proc_init (void) 319etp_proc_init (void)
311{ 320{
312#if HAVE_PRCTL_SET_NAME 321#if HAVE_PRCTL_SET_NAME
313 /* provide a more sensible "thread name" */ 322 /* provide a more sensible "thread name" */
314 char name[16 + 1]; 323 char name[15 + 1];
315 const int namelen = sizeof (name) - 1; 324 const int namelen = sizeof (name) - 1;
316 int len; 325 int len;
317 326
318 prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0); 327 prctl (PR_GET_NAME, (unsigned long)name, 0, 0, 0);
319 name [namelen] = 0; 328 name [namelen] = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines