FreeBSD Bugzilla – Attachment 149537 Details for
Bug 195126
rfcomm_sppd(1): Always output allocated pty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Always print allocated pty to stdout
rfcomm_sppd-always-output-pty.diff (text/plain), 860 bytes, created by
Timo Buhrmester
on 2014-11-17 22:56:55 UTC
(
hide
)
Description:
Always print allocated pty to stdout
Filename:
MIME Type:
Creator:
Timo Buhrmester
Created:
2014-11-17 22:56:55 UTC
Size:
860 bytes
patch
obsolete
>Index: usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c >=================================================================== >--- usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c (revision 274634) >+++ usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c (working copy) >@@ -281,6 +281,9 @@ > err(1, "Could not connect socket"); > } > >+ /* Print used tty on stdout for wrappers to pick up */ >+ fprintf(stdout, "%s\n", tty); >+ > /* Became daemon if required */ > if (background && daemon(0, 0) < 0) > err(1, "Could not daemon()"); >@@ -288,10 +291,6 @@ > openlog(SPPD_IDENT, LOG_NDELAY|LOG_PERROR|LOG_PID, LOG_DAEMON); > syslog(LOG_INFO, "Starting on %s...", (tty != NULL)? tty : "stdin/stdout"); > >- /* Print used tty on stdout for wrappers to pick up */ >- if (!background) >- fprintf(stdout, "%s\n", tty); >- > for (done = 0; !done; ) { > FD_ZERO(&rfd); > FD_SET(amaster, &rfd);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195126
:
149537
|
149538