bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: re-declaration of sys-errlist


From: Marco Parrone
Subject: Re: re-declaration of sys-errlist
Date: 18 Jul 2002 10:04:09 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

pod <address@hidden> writes:

> I belive this problem is fixed in the latest alpha.  Please check if the
> release at 
> 
> ftp://alpha.gnu.org/pub/gnu/finger/finger-1.39a5.tar.gz
> 
> fixes the problem you observe.  Let me know how you get on.

I've downloaded the latest alpha from a mirror of alpha.gnu.org.
This versione fixes the problem, but there is a bug too.

This is the error message:
--
face-finger.c: In function `show_face':
face-finger.c:428: error: too few arguments to function `_exit'
face-finger.c:434: warning: passing arg 2 of `waitpid' from incompatible 
pointer type
make[2]: *** [face-finger.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
--
The error is that at line 428.

I've corrected the problem with this trivial patch:
--- lib/face-finger.c~  Tue Dec 28 19:20:30 1999
+++ lib/face-finger.c   Thu Jul 18 09:52:58 2002
@@ -425,7 +425,7 @@
       /* uh oh, exec failed */
       fprintf (stderr,"show_face: cannot exec \"%s\":\n",program);
       perror ("");
-      _exit();                         /* do NOT call "exit" */
+      _exit(1);                                /* do NOT call "exit" */
     }
     /* We're the parent */
     if (pid < 0)                       /* error? */


I don't know if the value 1 is correct, but finger works ;)

Bye

-- 
Marco Parrone  <address@hidden>
46B9 4793 2066 1927 13DB  82A0 1698 FFE8 3E6A 957A
GPG public key (id: 0x3E6A957A) avaiable on keyservers.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]