summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.h
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2016-12-19 16:28:06 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-04-12 23:49:03 -0400
commit94afe2ca98a8ed9effb05901fc89d3b7bb6d0d41 (patch)
treeb6736751aa565b9af61c99e32c5a68a2832268b3 /xlators/cluster/dht/src/dht-common.h
parentb4beaa0505e8b23ac027fb6c995aa259c3f7550a (diff)
glusterd: Propagate EADDRINUSE correctly to parent process
exit()/_exit(): Only the least significant 8 bits i.e (err & 255) shall be available to the waiting parent process on calling _exit() or exit() with an integer exit status. If this number is negative, the parent process doesn't readily get what it's really looking forward to handle. For example: EADDRINUSE is 98 and if exit status code is set to -98, the waiting parent process shall get 158 (= -98 & 255) as exit status. BUG: 1193929 Change-Id: Idc6b0f40c2332e087e584b4b40cbf0d29168c9cd Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: https://review.gluster.org/16200 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
0 files changed, 0 insertions, 0 deletions