safe_strcpy(buf, "1234567890", sizeof(buf)-1);
for (i=0;i<n;i++) {
- messaging_send(msg_ctx, pid_to_procid(getpid()), MSG_PING,
+ messaging_send(msg_ctx, procid_self(), MSG_PING,
&data_blob_null);
- messaging_send_buf(msg_ctx, pid_to_procid(getpid()), MSG_PING,
+ messaging_send_buf(msg_ctx, procid_self(), MSG_PING,
(uint8 *)buf, 11);
}
{
struct server_id myid;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd onlinestatus\n");
{
struct server_id myid;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol <dest> dump-event-list\n");
uint8_t *buf = NULL;
int buf_len = 0;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc < 1 || argc > 2) {
fprintf(stderr, "Usage: smbcontrol <dest> dump_domain_list "
const struct server_id pid,
const int argc, const char **argv)
{
- struct server_id myid = pid_to_procid(sys_getpid());
+ struct server_id myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd validate-cache\n");
/* Try self - useful for testing */
if (strequal(dest, "self")) {
- return pid_to_procid(sys_getpid());
+ return procid_self();
}
/* Fix winbind typo. */