From: Lee Duncan <[email protected]>

The same code that is executed by iscsid
when iscsiadm sends the "immediate stop"
command should be executed when iscsid
receives a SIGTERM.

Changes since v3:
 * now just set the "event loop stop" flag

Signed-off-by: Lee Duncan <[email protected]>
---
 usr/iscsid.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr/iscsid.c b/usr/iscsid.c
index 0c2634448d09..81a14f259b5f 100644
--- a/usr/iscsid.c
+++ b/usr/iscsid.c
@@ -313,8 +313,7 @@ static void catch_signal(int signo)
 
        switch (signo) {
        case SIGTERM:
-               iscsid_shutdown();
-               exit(0);
+               event_loop_exit(NULL);
                break;
        default:
                break;
-- 
2.1.4

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to