[Bug 195126] New: [PATCH] rfcomm_sppd: Always output allocated pty

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 17 22:56:55 UTC 2014


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 at FreeBSD.org
          Reporter: fstd.lkml at 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.


More information about the freebsd-bugs mailing list