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.26 by root, Wed Aug 9 22:01:07 2006 UTC vs.
Revision 1.28 by ayin, Wed Oct 31 09:55:24 2007 UTC

45 45
46client::client () 46client::client ()
47{ 47{
48 sockaddr_un sa; 48 sockaddr_un sa;
49 char *sockname = rxvt_connection::unix_sockname (); 49 char *sockname = rxvt_connection::unix_sockname ();
50 50
51 if (strlen(sockname) >= sizeof(sa.sun_path)) 51 if (strlen(sockname) >= sizeof(sa.sun_path))
52 { 52 {
53 fputs ("socket name too long, aborting.\n", stderr); 53 fputs ("socket name too long, aborting.\n", stderr);
54 exit (STATUS_FAILURE); 54 exit (STATUS_FAILURE);
55 } 55 }
56 56
57 if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) 57 if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0)
58 { 58 {
59 perror ("unable to create communications socket"); 59 perror ("unable to create communications socket");
60 exit (STATUS_FAILURE); 60 exit (STATUS_FAILURE);
61 } 61 }
80 { 80 {
81 sigset_t ss; 81 sigset_t ss;
82 82
83 sigemptyset (&ss); 83 sigemptyset (&ss);
84 sigaddset (&ss, SIGHUP); 84 sigaddset (&ss, SIGHUP);
85 sigaddset (&ss, SIGPIPE);
85 sigprocmask (SIG_BLOCK, &ss, 0); 86 sigprocmask (SIG_BLOCK, &ss, 0);
86 } 87 }
87 88
88 c.send ("NEW"); 89 c.send ("NEW");
89 90

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines