Page MenuHomeFreeBSD

D11150.id29639.diff
No OneTemporary

D11150.id29639.diff

Index: usr.sbin/bhyve/rfb.c
===================================================================
--- usr.sbin/bhyve/rfb.c
+++ usr.sbin/bhyve/rfb.c
@@ -768,6 +768,7 @@
pthread_t tid;
uint32_t sres;
int len;
+ int perror = 1;
rc->cfd = cfd;
@@ -877,8 +878,9 @@
rfb_send_screen(rc, cfd, 1);
- pthread_create(&tid, NULL, rfb_wr_thr, rc);
- pthread_set_name_np(tid, "rfbout");
+ perror = pthread_create(&tid, NULL, rfb_wr_thr, rc);
+ if (perror == 0)
+ pthread_set_name_np(tid, "rfbout");
/* Now read in client requests. 1st byte identifies type */
for (;;) {
@@ -914,7 +916,8 @@
}
done:
rc->cfd = -1;
- pthread_join(tid, NULL);
+ if (perror == 0)
+ pthread_join(tid, NULL);
if (rc->enc_zlib_ok)
deflateEnd(&rc->zstream);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 15, 9:40 PM (2 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35114942
Default Alt Text
D11150.id29639.diff (762 B)

Event Timeline