[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Errors on Solaris
From: |
Ben Pfaff |
Subject: |
Re: Errors on Solaris |
Date: |
Thu, 29 May 2008 16:58:04 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
John Darrington <address@hidden> writes:
> On Thu, May 29, 2008 at 09:08:55AM -0700, Ben Pfaff wrote:
> John Darrington <address@hidden> writes:
>
> > The only two test failures now should be two which use $PPID which is
> > a bash thing and non-portable.
>
> We could do something like
> if test -z "$PPID"; then
> exit 77 # Make automake ignore this test
> fi
> to cater to systems that don't have it.
>
> That would be one option.
>
> But it's not a bashism. This is what SUSv3 says:
>
> Well it's not recognised by the /bin/sh which ships with Solaris9.
Solaris /bin/sh is not a POSIX shell, alas.
Solaris does come with a POSIX shell, but it's somewhere like
/usr/ucb/bin.
> One construct which seems to work both on solaris and on GNU/Linux is
> "ps -o ppid -p $$ | tail -1" but I don't know what BSD and all the
> other OSes might think of that.
If it comes down to that, it would be much better, in my opinion,
to compile a small C program to do this, e.g.
#include <signal.h>
int main(void)
{
kill(getppid(), SIGTERM);
}
--
"Unix... is not so much a product
as it is a painstakingly compiled oral history
of the hacker subculture."
--Neal Stephenson
- Re: pspp-0.6.0-pre3 released, (continued)
- Re: pspp-0.6.0-pre3 released, John Darrington, 2008/05/17
- Re: pspp-0.6.0-pre3 released, Jason Stover, 2008/05/16
- Errors on Solaris [was Re: pspp-0.6.0-pre3 released], John Darrington, 2008/05/18
- Re: Errors on Solaris, Ben Pfaff, 2008/05/20
- Re: Errors on Solaris, John Darrington, 2008/05/21
- Re: Errors on Solaris, Jason Stover, 2008/05/22
- Re: Errors on Solaris, John Darrington, 2008/05/26
- Re: Errors on Solaris, John Darrington, 2008/05/29
- Re: Errors on Solaris, Ben Pfaff, 2008/05/29
- Re: Errors on Solaris, John Darrington, 2008/05/29
- Re: Errors on Solaris,
Ben Pfaff <=
- Re: Errors on Solaris, John Darrington, 2008/05/29
- Re: Errors on Solaris, Ben Pfaff, 2008/05/30
- Re: Errors on Solaris, Jason Stover, 2008/05/29
- Re: Errors on Solaris, John Darrington, 2008/05/29
- Re: Errors on Solaris, Jason Stover, 2008/05/29
- Re: Errors on Solaris, Jason Stover, 2008/05/30
- Re: Errors on Solaris, John Darrington, 2008/05/30
- Re: Errors on Solaris, Jason Stover, 2008/05/31
- Re: Errors on Solaris, John Darrington, 2008/05/31
Re: pspp-0.6.0-pre3 released, John Darrington, 2008/05/14