diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-10-29 13:54:12 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2009-10-29 19:53:48 +0530 |
commit | da795fa84d261b6d33c9646456e1625e760d0def (patch) | |
tree | 1d06bd2ed6c12c243f4573f528a6dff05447debc | |
parent | 231c08ae0a6731eaf1d9ab436548fc48d1005381 (diff) | |
download | test-virtserial-da795fa84d261b6d33c9646456e1625e760d0def.tar.gz test-virtserial-da795fa84d261b6d33c9646456e1625e760d0def.tar.xz test-virtserial-da795fa84d261b6d33c9646456e1625e760d0def.zip |
auto-test-guest: return fd on open call instead of 0 as is done now
Earlier thinking was 0 is fine; host doesn't need to know the fd
obtained by the guest prog; that's ok too. just return fd is ok as well
Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r-- | auto-virtserial-guest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto-virtserial-guest.c b/auto-virtserial-guest.c index 901cfc4..510ffc5 100644 --- a/auto-virtserial-guest.c +++ b/auto-virtserial-guest.c @@ -67,7 +67,7 @@ static int open_port(int nr) if (fd == -1) return -errno; g_fd = fd; - return 0; + return fd; } static int poll_port(int timeout) |