|
Message-ID: <alpine.LNX.2.20.13.1609150928370.30232@monopod.intra.ispras.ru> Date: Thu, 15 Sep 2016 09:32:02 +0300 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Re: [PATCH RFC] add pthread_setname_np Hi, On Wed, 14 Sep 2016, Felix Janda wrote: > --- /dev/null > +++ b/src/thread/pthread_setname_np.c > @@ -0,0 +1,21 @@ [...] > + snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid); > + if ((fd = open(f, O_WRONLY)) < 0) return errno; > + if (write(fd, name, len) < 0) status = errno; Is there a reason to do it this way rather than via prctl(PR_SET_NAME, ...)? If so, it should be mentioned in the commit message. (I think using prctl would be more appropriate) Thanks. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.