Show More
@@ -366,9 +366,11 b' static void readhello(hgclient_t *hgc)' | |||
|
366 | 366 | |
|
367 | 367 | static void updateprocname(hgclient_t *hgc) |
|
368 | 368 | { |
|
369 |
|
|
|
369 | int r = snprintf(hgc->ctx.data, hgc->ctx.maxdatasize, | |
|
370 | 370 | "chg[worker/%d]", (int)getpid()); |
|
371 | hgc->ctx.datasize = n; | |
|
371 | if (r < 0 || (size_t)r >= hgc->ctx.maxdatasize) | |
|
372 | abortmsg("insufficient buffer to write procname (r = %d)", r); | |
|
373 | hgc->ctx.datasize = (size_t)r; | |
|
372 | 374 | writeblockrequest(hgc, "setprocname"); |
|
373 | 375 | } |
|
374 | 376 |
General Comments 0
You need to be logged in to leave comments.
Login now