diff options
author | Daniel Mack <github@zonque.org> | 2015-10-07 22:01:53 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-07 22:01:53 +0200 |
commit | 8aec6ec510884cbcad7327bead40751ac1b8fd1b (patch) | |
tree | ffddfc96350cd8c6ac23a93245c89532f4e184a8 /src/basic/util.c | |
parent | c379f143a5ccdbc94a87cfca0174e7f21fa05f26 (diff) | |
parent | 42718282f5b545684ca1a4e3fd71f8c593d15f97 (diff) |
Merge pull request #1490 from poettering/machinectl-shell-race-fix
machinectl shell race fix
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 2855993afe..f845e2dabb 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -6143,7 +6143,7 @@ int openpt_in_namespace(pid_t pid, int flags) { if (r < 0) _exit(EXIT_FAILURE); - master = posix_openpt(flags); + master = posix_openpt(flags|O_NOCTTY|O_CLOEXEC); if (master < 0) _exit(EXIT_FAILURE); |