lkml.org 
[lkml]   [1996]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Shell-Script problems
Date

Matthias Urlichs wrote:
>
>
> In linux.dev.kernel, article <Pine.LNX.3.95.961207163908.3415C-100000@moisil.wal.rhno.columbia.edu>,
> Ion Badulescu <ionut@moisil.wal.rhno.columbia.edu> writes:
> >
> > The changes are trivial, but before changing anything I'd like to hear
> > what other people think about this issue - whether the name of the process
> > as appears in /proc/<pid>/stat should be the name of the interpreter (for
> > compatibility reasons) or the name of the interpreted script.
> >
> The latter.
>
> > --- linux/fs/binfmt_script.c.old Sat Dec 7 20:47:27 1996
> > +++ linux/fs/binfmt_script.c Sat Dec 7 20:47:32 1996
> > @@ -76,7 +76,6 @@
> > /*
> > * OK, now restart the process with the interpreter's inode.
> > */
> > - bprm->filename = interp;
> > retval = open_namei(interp, 0, 0, &bprm->inode, NULL);
> > if (retval)
> > return retval;
> >
> Uh, what? This is already gone in 2.0.27.

This patch is intended for 2.1.14 to fix the fact that scripts show up
strangely under ps. 2.0.27 does not need this patch, because it works
correctly. Careful reading of this thread will clarify the problem.

-Erik

--
Erik B. Andersen Web: http://www.et.byu.edu/~andersee/
2485 South State St. email: andersee@et.byu.edu or andersee@debian.org
Springville, Ut 84663 phone: (801) 489-1231
--This message was written using 73% post-consumer electrons--

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.037 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site