From: Eric Bollengier Date: Wed, 4 Jan 2012 13:14:31 +0000 (+0100) Subject: Add BSOCK::set_killable() X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc71b735bf077753f0a6408a53953040be216198;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,