chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
execute: check ppid, not pid for 1
[elogind.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 311ece6b57141cdf8be5cc1d4f1cbceea5f76342..2e754fe6e0fa62680db690b1946fc14b1ad9ff5b 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-175,7
+175,7
@@
static void install_crash_handler(void) {
static int make_null_stdio(void) {
int null_fd, r;
- if ((null_fd = open("/dev/null", O_RDWR)) < 0) {
+ if ((null_fd = open("/dev/null", O_RDWR
|O_NOCTTY
)) < 0) {
log_error("Failed to open /dev/null: %m");
return -errno;
}