diff options
author | zhanchengbin <zhanchengbin1@huawei.com> | 2022-09-13 12:06:37 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-09-13 13:34:49 -0400 |
commit | 0ebb50c91e26139958619f11f7ad932567f17c05 (patch) | |
tree | d5852133a81387f19c25c8b1321b630a4aea3ebf /utils/blkmapd/device-discovery.c | |
parent | 627c95b2b853161b359095e7fdf05d3b07d51379 (diff) | |
download | nfs-utils-0ebb50c91e26139958619f11f7ad932567f17c05.tar.gz |
nfs-blkmapd: Fix the error status when nfs-blkmapd stopsnfs-utils-2-6-3-rc1
The systemctl stop nfs-blkmap.service will sends the SIGTERM signal
to the nfs-blkmap.service first.If the process fails to be stopped,
it sends the SIGKILL signal again to kill the process.
However, exit(1) is executed in the SIGTERM processing function of
nfs-blkmap.service. As a result, systemd receives an error message
indicating that nfs-blkmap.service failed.
"Active: failed" is displayed when the systemctl status
nfs-blkmap.service command is executed.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/blkmapd/device-discovery.c')
-rw-r--r-- | utils/blkmapd/device-discovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/blkmapd/device-discovery.c b/utils/blkmapd/device-discovery.c index 2736ac8..49935c2 100644 --- a/utils/blkmapd/device-discovery.c +++ b/utils/blkmapd/device-discovery.c @@ -462,7 +462,7 @@ static void sig_die(int signal) unlink(PID_FILE); } BL_LOG_ERR("exit on signal(%d)\n", signal); - exit(1); + exit(0); } static void usage(void) { |