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