From: Stefan Metzmacher Date: Thu, 15 Aug 2019 14:10:58 +0000 (+0200) Subject: s3:torture: fix the timeout alarm handling on LOCK9 X-Git-Tag: talloc-2.3.1~977 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e18c8ced8e7a872deb118191595425ef6b826bfa;p=thirdparty%2Fsamba.git s3:torture: fix the timeout alarm handling on LOCK9 smbXcli_conn_disconnect(alarm_cli->conn, NT_STATUS_OK) means existing requests are not finished with an error, but instead just keep dangling arround. Pass NT_STATUS_LOCAL_DISCONNECT in order to fail the cli_lock32() call after getting SIGALARM. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113 Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 7ead71c644d..9d214f55973 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2544,7 +2544,7 @@ static void alarm_handler(int dummy) static void alarm_handler_parent(int dummy) { - smbXcli_conn_disconnect(alarm_cli->conn, NT_STATUS_OK); + smbXcli_conn_disconnect(alarm_cli->conn, NT_STATUS_LOCAL_DISCONNECT); } static void do_local_lock(int read_fd, int write_fd)