Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 22:56:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195126] New: [PATCH] rfcomm_sppd: Always output allocated pty
Message-ID:  <bug-195126-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195126

            Bug ID: 195126
           Summary: [PATCH] rfcomm_sppd: Always output allocated pty
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: fstd.lkml@gmail.com

Created attachment 149537
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149537&action=edit
Always print allocated pty to stdout

When rfcomm_sppd is told to daemonize (-b), it does not write the name of the
pty it obtained through openpty() to standard output.  This probably wasn't a
problem before openpty() was used, as one had to manually specify which pty
should be used.

The attached patch causes rfcomm_sppd to unconditionally output the path to the
allocated pty, before daemonizing.  Without it, there is no (robust) way to
determine which pty was allocated, after the fact.

Best,
Timo Buhrmester

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195126-8>