ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtc.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtc.C (file contents):
Revision 1.3 by pcg, Tue Nov 25 11:52:42 2003 UTC vs.
Revision 1.4 by pcg, Thu Nov 27 10:12:10 2003 UTC

18 { 18 {
19 perror ("unable to create listening socket"); 19 perror ("unable to create listening socket");
20 exit (EXIT_FAILURE); 20 exit (EXIT_FAILURE);
21 } 21 }
22 22
23 char *sockname = rxvt_connection::unix_sockname ();
23 sockaddr_un sa; 24 sockaddr_un sa;
24
25 sa.sun_family = AF_UNIX; 25 sa.sun_family = AF_UNIX;
26 strcpy (sa.sun_path, rxvt_connection::unix_sockname ()); 26 strcpy (sa.sun_path, sockname);
27 free (sockname);
27 28
28 if (connect (fd, (sockaddr *)&sa, sizeof (sa))) 29 if (connect (fd, (sockaddr *)&sa, sizeof (sa)))
29 { 30 {
30 perror ("unable to bind listening socket"); 31 perror ("unable to bind listening socket");
31 exit (EXIT_FAILURE); 32 exit (EXIT_FAILURE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines