Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-10 Thread Samuel Thibault
Pino Toscano, le Mon 10 Sep 2012 18:16:44 +0200, a écrit : > Updated patch attached. Applied, thanks! Samuel

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-10 Thread Samuel Thibault
Pino Toscano, le Mon 10 Sep 2012 18:16:44 +0200, a écrit : > Alle lunedì 10 settembre 2012, Samuel Thibault ha scritto: > > Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit : > > > Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > > > > Pino Toscano, le Fri 07 Sep 2012 20:02:56

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-10 Thread Pino Toscano
Alle lunedì 10 settembre 2012, Samuel Thibault ha scritto: > Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit : > > Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > > > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > > > +static int args_filename_length (const ch

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-10 Thread Samuel Thibault
Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit : > Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > > +static int args_filename_length (const char *name) > > > +{ > > > + const char *p = name; > > > + while (*

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-10 Thread Pino Toscano
Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > +static int args_filename_length (const char *name) > > +{ > > + const char *p = name; > > + while (*p != '\0' && *p != ' ') > > +++p; > > Why not using index(name, '

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-08 Thread Samuel Thibault
Guillem Jover, le Sun 09 Sep 2012 01:22:43 +0200, a écrit : > On Sun, 2012-09-09 at 00:22:11 +0200, Samuel Thibault wrote: > > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > > +static int args_filename_length (const char *name) > > > +{ > > > + const char *p = name; > > > + while

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-08 Thread Guillem Jover
On Sun, 2012-09-09 at 00:22:11 +0200, Samuel Thibault wrote: > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > +static int args_filename_length (const char *name) > > +{ > > + const char *p = name; > > + while (*p != '\0' && *p != ' ') > > +++p; > > Why not using index(name, '

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-08 Thread Samuel Thibault
Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > +static int args_filename_length (const char *name) > +{ > + const char *p = name; > + while (*p != '\0' && *p != ' ') > +++p; Why not using index(name, ' ') here? > + return p - name; > +} Samuel

[PATCH] procfs: another fix for the process file name in stat/status

2012-09-07 Thread Pino Toscano
Hi, attached there is a new patch for procfs to improve again the file name in stat/status files for PIDs. Basically, it just considers only the first word in case the process name has more (e.g. when it changed its own). Thanks, -- Pino Toscano From ebf2b049ea6963026766763df1697467f5806327 Mo