X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/fe75e5033cd83f2ddc537457d96625044d168433..89e97516fedf1d0a7fe9c569bb569fa7ea872afa:/unix/uxser.c diff --git a/unix/uxser.c b/unix/uxser.c index d6471084..08f21575 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"; + fcntl(serial->fd, F_SETFD, FD_CLOEXEC); + err = serial_configure(serial, cfg); if (err) return err;