On Wed, Aug 5, 2009 at 2:51 PM, Garrett Cooper<[email protected]> wrote:
> Sorry -- I know this isn't a linux support list but I was wondering
> whether or not anyone else could stimulate this error on x64:
>
> gcoo...@orangebox ~ $ gcc -D_GNU_SOURCE -Wall -o foo foo.c
> gcoo...@orangebox ~ $ ./foo
> strerror: Invalid argument
> gcoo...@orangebox ~ $ cat foo.c
> #include <sys/types.h>
> #include <sys/wait.h>
> #include <stdio.h>
> #include <string.h>
> #include <errno.h>
> #include <stdlib.h>
> #include <unistd.h>
>
> int
> main (void)
> {
>        siginfo_t infop;
>        errno = 0;
>        pid_t id = fork();
>        if (0 <= id) {
>                if (! id) {
>                        exit (0);
>                }
>        } else {
>                perror("fork()");
>        }
>        /*printf("errno: %d\n", errno);*/
>        waitid(P_ALL, 0, &infop, WNOHANG);
>        /*printf("errno: %d\n", errno);*/
>        if (errno) {
>                printf("strerror: %s\n", strerror(errno));
>        }
>        return 0;
> }
> gcoo...@orangebox ~ $ uname -a
> Linux orangebox 2.6.29-gentoo-r5 #2 SMP PREEMPT Sun Jun 14 01:11:32
> PDT 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
> GenuineIntel GNU/Linux
>
> For whatever reason it doesn't seem to function, even in a simple test
> program, and it wasn't functioning before in waitid02, so I'm trying
> to determine whether or not this is a valid issue.
>
> IIRC we saw similar issues on 2.6.24 with PPC on mips n32 with cavium
> boards, so this might be a bit-width issue?

Please completely ignore the `with PPC' part. It's spurious.
Thanks,
-Garrett

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to