From 5dcba9869c3b1f32ebfbbeb8b27f7bd5c4bd150c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 4 Jan 2012 14:14:31 +0100 Subject: [PATCH] Add BSOCK::set_killable() --- bacula/src/lib/bsock.c | 7 +++++++ bacula/src/lib/bsock.h | 1 + 2 files changed, 8 insertions(+) diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index cc3231b2c0..4a0e8be6bd 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -811,6 +811,13 @@ int BSOCK::set_blocking() #endif } +void BSOCK::set_killable(bool killable) +{ + if (m_jcr) { + m_jcr->set_killable(killable); + } +} + /* * Restores socket flags */ diff --git a/bacula/src/lib/bsock.h b/bacula/src/lib/bsock.h index 7f1fb8b10f..fa2ad2a1ec 100644 --- a/bacula/src/lib/bsock.h +++ b/bacula/src/lib/bsock.h @@ -119,6 +119,7 @@ public: int set_nonblocking(); int set_blocking(); void restore_blocking(int flags); + void set_killable(bool killable); int wait_data(int sec, int usec=0); int wait_data_intr(int sec, int usec=0); bool authenticate_director(const char *name, const char *password, -- 2.39.5