File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ namespace Profiling {
199
199
for (p = servinfo; p != NULL ; p = p->ai_next ) {
200
200
if ((sockfd = socket (p->ai_family , p->ai_socktype ,
201
201
p->ai_protocol )) == -1 ) {
202
- perror ( " client: socket " );
202
+ // errno is set here, but we don't examine it.
203
203
continue ;
204
204
}
205
205
@@ -209,15 +209,15 @@ namespace Profiling {
209
209
#else
210
210
close (sockfd);
211
211
#endif
212
- perror ( " client: connect " );
212
+ // errno is set here, but we don't examine it.
213
213
continue ;
214
214
}
215
215
216
216
break ;
217
217
}
218
218
219
+ // Connection failed; give up.
219
220
if (p == NULL ) {
220
- fprintf (stderr, " client: failed to connect\n " );
221
221
goto giveup;
222
222
}
223
223
@@ -226,7 +226,6 @@ namespace Profiling {
226
226
_connected = true ;
227
227
return ;
228
228
giveup:
229
- std::cerr << " couldn't connect to profiler; running solo\n " ;
230
229
_connected = false ;
231
230
return ;
232
231
}
You can’t perform that action at this time.
0 commit comments