Author: yamakenz
Date: Sat Sep 29 18:49:33 2007
New Revision: 5023

Modified:
   trunk/configure.ac
   trunk/uim/uim-helper.c

Log:
* configure.ac
  - Add a FIXME comment for perror(3)
* uim/uim-helper.c
  - (uim_helper_send_message): Replace fprintf() with perror() to
    investigate what kind of error is raised on No.869 of [uim thread
    7]. Thanks for the report


Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Sat Sep 29 18:49:33 2007
@@ -451,6 +451,7 @@
 AC_CHECK_FUNCS([asprintf vasprintf])
 # C99 functions
 AC_CHECK_FUNCS([snprintf vsnprintf])
+# FIXME: replace non-standard perror(3)
 AC_REPLACE_FUNCS([getpeereid strsep setenv unsetenv strlcpy strlcat strtonum 
strtoll])
 AC_CHECK_FUNCS([getpid stat mkdir chmod])
 AC_CHECK_FUNCS([execv execvp])

Modified: trunk/uim/uim-helper.c
==============================================================================
--- trunk/uim/uim-helper.c      (original)
+++ trunk/uim/uim-helper.c      Sat Sep 29 18:49:33 2007
@@ -121,7 +121,7 @@
     if ((res = write(fd, bufp, out_len)) < 0) {
       if (errno == EAGAIN || errno == EINTR)
        continue;
-      fprintf(stderr, "uim_helper_send_message(): unknown error\n");
+      perror("uim_helper_send_message(): unhandled error");
       break;
     }
 

Reply via email to