From: Eric Bollengier Date: Wed, 4 Jan 2012 13:14:31 +0000 (+0100) Subject: Add BSOCK::set_killable() X-Git-Tag: Release-7.0.0~371 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5dcba9869c3b1f32ebfbbeb8b27f7bd5c4bd150c;p=bacula%2Fbacula Add BSOCK::set_killable() --- 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,