1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

some debug code

(This used to be ctdb commit 957801ad6285c21fd11469a60dbdcc170e7009cb)
This commit is contained in:
Andrew Tridgell 2007-04-27 16:42:43 +02:00
parent 3dc6331aee
commit eee3912c99
2 changed files with 7 additions and 1 deletions

View File

@ -51,9 +51,13 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
switch (opcode) {
case CTDB_CONTROL_PROCESS_EXISTS: {
pid_t pid;
int32_t ret;
CHECK_CONTROL_DATA_SIZE(sizeof(pid));
pid = *(pid_t *)indata.dptr;
return kill(pid, 0);
ret = kill(pid, 0);
DEBUG(5,("process_exists on %u:%u gave %d\n",
ctdb->vnn, pid, ret));
return ret;
}
case CTDB_CONTROL_SET_DEBUG: {

View File

@ -34,6 +34,8 @@
#define CTDB_CURRENT_NODE 0xF0000001
#define CTDB_BROADCAST_VNN 0xF0000002
/*
an installed ctdb remote call
*/