--- rxvt-unicode/src/rxvtc.C 2005/12/23 14:46:35 1.17 +++ rxvt-unicode/src/rxvtc.C 2006/01/17 15:17:39 1.20 @@ -41,7 +41,7 @@ client::client () { - if ((fd = socket (PF_UNIX, SOCK_STREAM, 0)) < 0) + if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) { perror ("unable to create communications socket"); exit (EXIT_FAILURE); @@ -121,6 +121,7 @@ else if (!strcmp (tok, "END")) { int success; + if (c.recv (success)) exit (success ? EXIT_SUCCESS : EXIT_FAILURE); }