projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: Don't unload kernel modules in init script on "stop" or "restart".
[openvswitch]
/
lib
/
process.c
diff --git
a/lib/process.c
b/lib/process.c
index 1fe3c123506ccbcbec0bacbd15f550b02d67f59d..12168f7e21289cd07fc65db66f89078d65d3e9cf 100644
(file)
--- a/
lib/process.c
+++ b/
lib/process.c
@@
-161,7
+161,7
@@
process_register(const char *name, pid_t pid)
assert(sigchld_is_blocked());
assert(sigchld_is_blocked());
- p = x
calloc(1,
sizeof *p);
+ p = x
zalloc(
sizeof *p);
p->pid = pid;
slash = strrchr(name, '/');
p->name = xstrdup(slash ? slash + 1 : name);
p->pid = pid;
slash = strrchr(name, '/');
p->name = xstrdup(slash ? slash + 1 : name);
@@
-289,7
+289,7
@@
process_exited(struct process *p)
return true;
} else {
char buf[_POSIX_PIPE_BUF];
return true;
} else {
char buf[_POSIX_PIPE_BUF];
-
read(fds[0], buf, sizeof buf
);
+
ignore(read(fds[0], buf, sizeof buf)
);
return false;
}
}
return false;
}
}
@@
-617,7
+617,7
@@
sigchld_handler(int signr UNUSED)
}
}
}
}
}
}
-
write(fds[1], "", 1
);
+
ignore(write(fds[1], "", 1)
);
}
static bool
}
static bool