chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as weaker counte...
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index d653d6b549beac73ff3884994d2d6334993db2a5..fecdee12e275b89f2b1220f9374142d550f13028 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-2605,6
+2605,15
@@
int make_stdio(int fd) {
return 0;
}
return 0;
}
+int make_null_stdio(void) {
+ int null_fd;
+
+ if ((null_fd = open("/dev/null", O_RDWR|O_NOCTTY)) < 0)
+ return -errno;
+
+ return make_stdio(null_fd);
+}
+
bool is_clean_exit(int code, int status) {
if (code == CLD_EXITED)
bool is_clean_exit(int code, int status) {
if (code == CLD_EXITED)
@@
-3543,10
+3552,9
@@
void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t) {
(unsigned long long) t->monotonic);
}
(unsigned long long) t->monotonic);
}
-void dual_timestamp_deserialize(
FILE *f,
const char *value, dual_timestamp *t) {
+void dual_timestamp_deserialize(const char *value, dual_timestamp *t) {
unsigned long long a, b;
unsigned long long a, b;
- assert(f);
assert(value);
assert(t);
assert(value);
assert(t);