summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-01 19:29:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:39 -0500
commit69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a (patch)
tree4a0c00ef0b03b5e916800787a0985c7296f29ad0 /source3/utils
parentaebd5170755d638aa0e4429dfb7dce9b4c405d06 (diff)
downloadsamba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.tar.gz
samba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.tar.bz2
samba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.zip
r21115: notify_internal.c needs to remove the table entry if a process has crashed. So
it needs the specific error message. Make messages.c return NTSTATUS and specificially NT_STATUS_INVALID_HANDLE if sending to a non-existent process. Volker (This used to be commit 3f620d181da0c356c8ffbdb5b380ccab3645a972)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 26e2b82ae6..ec1e101e06 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -59,7 +59,8 @@ static BOOL send_message(struct process_id pid, int msg_type,
return False;
if (procid_to_pid(&pid) != 0)
- return message_send_pid(pid, msg_type, buf, len, duplicates);
+ return NT_STATUS_IS_OK(message_send_pid(pid, msg_type, buf, len,
+ duplicates));
tdb = tdb_open_log(lock_path("connections.tdb"), 0,
TDB_DEFAULT, O_RDWR, 0);