X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/e9122dbeb747afb12d2c3c305228958c2e23e6cf..db9b7dcedb001b942ad945a56b2d7bf9b77d7a6a:/unix/uxser.c diff --git a/unix/uxser.c b/unix/uxser.c index 08f21575..454d7b36 100644 --- a/unix/uxser.c +++ b/unix/uxser.c @@ -257,7 +257,7 @@ static const char *serial_init(void *frontend_handle, void **backend_handle, if (serial->fd < 0) return "Unable to open serial port"; - fcntl(serial->fd, F_SETFD, FD_CLOEXEC); + cloexec(serial->fd); err = serial_configure(serial, cfg); if (err)