projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I've just discovered that using the saved sessions menu from Unix
[u/mdw/putty]
/
unix
/
uxser.c
diff --git
a/unix/uxser.c
b/unix/uxser.c
index
d647108
..
08f2157
100644
(file)
--- 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";
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;
err = serial_configure(serial, cfg);
if (err)
return err;