X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fgnuserv.c;h=419baa8c2780f1b6b7ee021a095363846059cda7;hb=708c9f873a6b118eccbc7ff1ff6e6b9a9d2b8fdc;hp=f792f742c7d2fb78d2aeda8e55dac39f31bbef42;hpb=762383636a99307282c2d93d26c35c046ec24da1;p=chise%2Fxemacs-chise.git- diff --git a/lib-src/gnuserv.c b/lib-src/gnuserv.c index f792f74..419baa8 100644 --- a/lib-src/gnuserv.c +++ b/lib-src/gnuserv.c @@ -889,7 +889,7 @@ main (int argc, char *argv[]) { perror(progname); fprintf(stderr,"%s: unable to select\n",progname); - exit(1); + return 1; } /* if */ #ifdef UNIX_DOMAIN_SOCKETS @@ -905,9 +905,7 @@ main (int argc, char *argv[]) if (FD_ISSET(fileno(stdin), &rmask)) /* from stdin (gnu process) */ handle_response(); #endif /* NOT SYSV_IPC */ - } /* while */ - - return 0; + } /* while (1) */ } /* main */ #endif /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */