diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2015-09-02 11:14:41 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2015-09-02 11:14:41 +0200 |
commit | d18ec0491ed7c502080c03fa5fe93c8b6ac3d6ea (patch) | |
tree | 3613b205544d081eaa76656c117034754531ce73 /src/basic/util.c | |
parent | f22572452b55f78ec9cddfdb0229c1d93dd9ce67 (diff) | |
parent | 751090cc8ae09787402d60b7080d479b3afe3b13 (diff) |
Merge pull request #1112 from poettering/sd-bus-container-fixes
machined and sd-bus container fixes
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 737f2a221c..f01f5f237b 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -6095,6 +6095,9 @@ int openpt_in_namespace(pid_t pid, int flags) { if (master < 0) _exit(EXIT_FAILURE); + if (unlockpt(master) < 0) + _exit(EXIT_FAILURE); + cmsg = CMSG_FIRSTHDR(&mh); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; |