plugins/python: check uwsgi_connect return code in uwsgi_python_harakiri

Reported by Coverity as CID #970996.
This commit is contained in:
Riccardo Magliocchetti
2013-01-26 21:23:17 +01:00
parent 297bd429a9
commit e106a6ef61
+1 -1
View File
@@ -1802,7 +1802,7 @@ void uwsgi_python_harakiri(int wid) {
char *address = uwsgi_concat2(up.tracebacker, uwsgi_num2str(wid));
int fd = uwsgi_connect(address, -1, 0);
for (;;) {
while (fd >= 0) {
int ret = uwsgi_waitfd(fd, uwsgi.shared->options[UWSGI_OPTION_SOCKET_TIMEOUT]);
if (ret <= 0) {
break;