gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r10016: exit if there are errors crea


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r10016: exit if there are errors creating a server connection.
Date: Sat, 21 Feb 2009 17:42:32 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10016
committer: address@hidden
branch nick: rtmp
timestamp: Sat 2009-02-21 17:42:32 -0700
message:
  exit if there are errors creating a server connection.
modified:
  cygnal/cgi-bin/echo/gateway.cpp
=== modified file 'cygnal/cgi-bin/echo/gateway.cpp'
--- a/cygnal/cgi-bin/echo/gateway.cpp   2009-02-21 23:08:40 +0000
+++ b/cygnal/cgi-bin/echo/gateway.cpp   2009-02-22 00:42:32 +0000
@@ -126,6 +126,9 @@
     int netfd = 0;
     if (infile.empty()) {
         fd = net.createServer(port);
+        if (fd <= 0) {
+            exit(1);
+        }
         // Only wait for a limited time.
         net.setTimeout(10);
 //        netfd = net.newConnection(false, fd);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]