diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2017-10-08 14:09:47 +0200 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2017-10-08 17:46:19 +0200 |
commit | 98e0742024d4c13c08a6076b3d119c250e7d0118 (patch) | |
tree | fd5901696086595b8b036376c13c8ee1317f0307 /nptl/pthread_setcancelstate.c | |
parent | e7a574594931a8221b39432dc0637ec7423b14f6 (diff) | |
download | glibc-98e0742024d4c13c08a6076b3d119c250e7d0118.tar.gz glibc-98e0742024d4c13c08a6076b3d119c250e7d0118.tar.xz glibc-98e0742024d4c13c08a6076b3d119c250e7d0118.zip |
openpty: close slave pty fd on error
When openpty() failed only the master fd was closed so far. Let's close the slave fd as well. Also, let's unify the error handling. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'nptl/pthread_setcancelstate.c')
0 files changed, 0 insertions, 0 deletions