Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135725351
D11150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D11150.diff
View Options
Index: head/usr.sbin/bhyve/rfb.c
===================================================================
--- head/usr.sbin/bhyve/rfb.c
+++ head/usr.sbin/bhyve/rfb.c
@@ -769,6 +769,7 @@
pthread_t tid;
uint32_t sres = 0;
int len;
+ int perror = 1;
rc->cfd = cfd;
@@ -878,8 +879,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 (;;) {
@@ -915,7 +917,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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 13, 6:19 AM (13 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25247883
Default Alt Text
D11150.diff (781 B)
Attached To
Mode
D11150: Initialize pthread_t: CID 1375950
Attached
Detach File
Event Timeline
Log In to Comment