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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to