Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 1999 13:10:20 +0800
From:      adrian@freebsd.org
To:        Andrew Gordon <arg@arg1.demon.co.uk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: StarOffice command line args 
Message-ID:  <19990516051021.6204.qmail@ewok.creative.net.au>
In-Reply-To: Your message of "Sat, 15 May 1999 21:53:18 %2B0100." <Pine.BSF.3.96.990515214551.27200B-200000@server.arg.sj.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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.

Cool!

I'll mess with this and get it going in other processes, and submit the patch
to this (I'm assuming here someone will commit it soonish..)


Adrian


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?19990516051021.6204.qmail>