summaryrefslogtreecommitdiffstats
path: root/sesman/tools/dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/tools/dis.c')
-rw-r--r--sesman/tools/dis.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c
index adcc3ee0..a21fbac4 100644
--- a/sesman/tools/dis.c
+++ b/sesman/tools/dis.c
@@ -58,7 +58,12 @@ int main(int argc, char **argv)
return 1;
}
- sck = socket(PF_UNIX, SOCK_DGRAM, 0);
+ if ((sck = socket(PF_UNIX, SOCK_DGRAM, 0)) < 0)
+ {
+ printf("socket open error\n");
+ return 1;
+ }
+
len = sizeof(sa);
if (sendto(sck, "sig", 4, 0, (struct sockaddr *)&sa, len) > 0)