comparison lib-src/gnuclient.c @ 881:dfee0026a079

[xemacs-hg @ 2002-06-25 08:09:01 by stephent] fix no-Internet gnuclient <15605.25099.148651.76763@slab.corp.buildpoint.com>
author stephent
date Tue, 25 Jun 2002 08:09:02 +0000
parents 943eaba38521
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
880:beddd25fe24a 881:dfee0026a079
463 { 463 {
464 fprintf (stderr, "%s: Cannot specify `-batch' with file names\n", 464 fprintf (stderr, "%s: Cannot specify `-batch' with file names\n",
465 progname); 465 progname);
466 exit (1); 466 exit (1);
467 } 467 }
468 #if defined(INTERNET_DOMAIN_SOCKETS)
468 if (suppress_windows_system && hostarg) 469 if (suppress_windows_system && hostarg)
469 { 470 {
470 fprintf (stderr, "%s: Remote editing is available only on X\n", 471 fprintf (stderr, "%s: Remote editing is available only on X\n",
471 progname); 472 progname);
472 exit (1); 473 exit (1);
473 } 474 }
474 475 #endif
475 *result = '\0'; 476 *result = '\0';
476 if (eval_function || eval_form || load_library) 477 if (eval_function || eval_form || load_library)
477 { 478 {
478 #if defined(INTERNET_DOMAIN_SOCKETS) 479 #if defined(INTERNET_DOMAIN_SOCKETS)
479 connect_type = make_connection (hostarg, port, &s); 480 connect_type = make_connection (hostarg, port, &s);
561 progname); 562 progname);
562 exit (1); 563 exit (1);
563 } 564 }
564 /* Don't do disconnect_from_server because we have already read 565 /* Don't do disconnect_from_server because we have already read
565 data, and disconnect doesn't do anything else. */ 566 data, and disconnect doesn't do anything else. */
566 #ifndef INTERNET_DOMAIN_SOCKETS 567 #ifdef SYSV_IPC
567 if (connect_type == (int) CONN_IPC) 568 if (connect_type == (int) CONN_IPC)
568 disconnect_from_ipc_server (s, msgp, FALSE); 569 disconnect_from_ipc_server (s, msgp, FALSE);
569 #endif /* !SYSV_IPC */ 570 #endif /* !SYSV_IPC */
570 571
571 emacs_pid = (pid_t)atol(buffer); 572 emacs_pid = (pid_t)atol(buffer);