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:
parent
3dc6331aee
commit
eee3912c99
@ -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: {
|
||||
|
@ -34,6 +34,8 @@
|
||||
|
||||
#define CTDB_CURRENT_NODE 0xF0000001
|
||||
#define CTDB_BROADCAST_VNN 0xF0000002
|
||||
|
||||
|
||||
/*
|
||||
an installed ctdb remote call
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user