diff options
author | Dave Brolley <brolley@redhat.com> | 2009-11-02 15:15:09 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-11-02 15:15:09 -0500 |
commit | 41b0a0c67e5848de4c621a53f6b2d0acb92b901f (patch) | |
tree | d251063c4da28517e0030bd8de62bc8dcbded630 /stap-server-connect.c | |
parent | d210cb1c6405a7560c98961af286a6aee36df7ef (diff) | |
download | systemtap-steved-41b0a0c67e5848de4c621a53f6b2d0acb92b901f.tar.gz systemtap-steved-41b0a0c67e5848de4c621a53f6b2d0acb92b901f.tar.xz systemtap-steved-41b0a0c67e5848de4c621a53f6b2d0acb92b901f.zip |
Final cleanup of stap-server initscript and packaging.
Diffstat (limited to 'stap-server-connect.c')
-rw-r--r-- | stap-server-connect.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stap-server-connect.c b/stap-server-connect.c index cbbc97d1..c4d8da88 100644 --- a/stap-server-connect.c +++ b/stap-server-connect.c @@ -410,6 +410,9 @@ handle_connection(PRFileDesc *tcpSocket) goto cleanup; } + /* Log the accepted connection. */ + printf ("Accepted connection!\n"); + /* Create a temporary files and directories. */ memcpy (requestFileName + sizeof (requestFileName) - 1 - 6, "XXXXXX", 6); rc = mkstemp(requestFileName); @@ -609,8 +612,8 @@ server_main(unsigned short port, SECKEYPrivateKey *privKey, CERTCertificate *cer /* Configure the network connection. */ addr.inet.family = PR_AF_INET; - addr.inet.ip = PR_INADDR_ANY; - addr.inet.port = PR_htons(port); + addr.inet.ip = PR_INADDR_ANY; + addr.inet.port = PR_htons(port); /* Bind the address to the listener socket. */ prStatus = PR_Bind(listenSocket, &addr); @@ -744,7 +747,7 @@ main(int argc, char **argv) /* Set the cert database password callback. */ PK11_SetPasswordFunc(myPasswd); - /* Initialize NSS. */ + /* Initialize NSS. */ secStatus = NSS_Init(dbdir); if (secStatus != SECSuccess) exitErr("NSS_Init"); |