mailarchive of the pengutronix oss-tools mailing list
 help / color / mirror / Atom feed
* [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK
@ 2018-03-06  9:44 Uwe Kleine-König
  2018-03-06  9:44 ` [OSS-Tools] [PATCH 2/2] Advertise oss-tools@pengutronix.de as address to send patches to Uwe Kleine-König
  2018-03-06 10:06 ` [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2018-03-06  9:44 UTC (permalink / raw)
  To: oss-tools

I don't know when this is necessary, but sometimes the pl2303 on an
espressobin board blocks on open() otherwise. kermit uses O_NONBLOCK,
too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/serial.c b/serial.c
index 00b817d9c94f..0778fe1d8698 100644
--- a/serial.c
+++ b/serial.c
@@ -203,7 +203,7 @@ struct ios_ops * serial_init(char *device)
 	close(fd);
 force:
 	/* open the device */
-	fd = open(device, O_RDWR);
+	fd = open(device, O_RDWR | O_NONBLOCK);
 	ops->fd = fd;
 
 	if (fd < 0) {
-- 
2.16.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [OSS-Tools] [PATCH 2/2] Advertise oss-tools@pengutronix.de as address to send patches to.
  2018-03-06  9:44 [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König
@ 2018-03-06  9:44 ` Uwe Kleine-König
  2018-03-06 10:06 ` [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2018-03-06  9:44 UTC (permalink / raw)
  To: oss-tools

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 COPYING      | 3 ++-
 configure.ac | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/COPYING b/COPYING
index 334c1fd31758..d7c552d86d0e 100644
--- a/COPYING
+++ b/COPYING
@@ -11,7 +11,8 @@ line reading:
 
 	Signed-off-by: Random J Developer <random@developer.example.org>
 
-with your real name and email address at the end of the patch description.
+with your real name and email address at the end of the patch description
+and send it to oss-tools@pengutronix.de.
 --------------------------------------------------------------------------------
 
                     GNU GENERAL PUBLIC LICENSE
diff --git a/configure.ac b/configure.ac
index 7c10785547da..b98cc6d21908 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([microcom], [2016.01.0])
+AC_INIT([microcom], [2016.01.0], [oss-tools@pengutronix.de])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([dist-xz])
-- 
2.16.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK
  2018-03-06  9:44 [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König
  2018-03-06  9:44 ` [OSS-Tools] [PATCH 2/2] Advertise oss-tools@pengutronix.de as address to send patches to Uwe Kleine-König
@ 2018-03-06 10:06 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2018-03-06 10:06 UTC (permalink / raw)
  To: oss-tools

On Tue, Mar 06, 2018 at 10:44:43AM +0100, Uwe Kleine-König wrote:
> I don't know when this is necessary, but sometimes the pl2303 on an
> espressobin board blocks on open() otherwise. kermit uses O_NONBLOCK,
> too.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

I forgot to note: These are microcom patches.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
OSS-Tools mailing list
OSS-Tools@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-06 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06  9:44 [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König
2018-03-06  9:44 ` [OSS-Tools] [PATCH 2/2] Advertise oss-tools@pengutronix.de as address to send patches to Uwe Kleine-König
2018-03-06 10:06 ` [OSS-Tools] [PATCH 1/2] serial: open port with O_NONBLOCK Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox