Date: Sat, 15 May 1999 18:25:51 -0500 (EST) From: Jon Smith <jonsmith@physics.purdue.edu> To: Andrew Gordon <arg@arg1.demon.co.uk> Cc: freebsd-hackers@freebsd.org Subject: Re: StarOffice command line args Message-ID: <Pine.BSF.4.05.9905151825340.35902-100000@galileo.physics.purdue.edu> In-Reply-To: <Pine.BSF.3.96.990515214551.27200B-200000@server.arg.sj.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
A million and one thanks + tax. Jon Smith On Sat, 15 May 1999, Andrew Gordon wrote: > Some while ago, Jon Smith wrote: > > > > Has anyone successfully gotten Star Office 5.0 to run multi-user? > > > > I have just solved this. The problem is that StarOffice accesses the > command line arguments (and hence the "/net" flag needed to install > multi-user) using the vile /proc/xxx/cmdline mechanism. The FreeBSD > implementation of this is a hack that only returns argv[0] and therefore > discards any command line arguments. > > The attached patch is still a hack, but is one step closer to the right > answer: it now returns the right answer if the current process reads its > own /proc/xxx/cmdline, but still returns only argv[0] if a process > attempts to read another process' cmdline. This is enough to solve the > StarOffice problem. > > The reason I haven't done the job properly is that I don't know how to > read an address in user-space for a process other than curproc. From the > implementation of /proc/xxx/mem, this seems difficult to do. > > > -- "Everywhere I go, there's Jon Smith!" -- Leah Dunlevy "Cars don't kill people.... People kill people." Jonathan Smith <jonsmith@physics.purdue.edu> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905151825340.35902-100000>