From d23c1d4b955d5829857fead3bee20b8d41a83492 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Fri, 19 Apr 2024 15:27:41 +0200 Subject: [PATCH] Fix disconnect request on Linux --- hldebug-wrapper/lib/linux/hldebug.node | Bin 61344 -> 61344 bytes hldebug-wrapper/src/debug.c | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hldebug-wrapper/lib/linux/hldebug.node b/hldebug-wrapper/lib/linux/hldebug.node index b71b25c5b4f13033c799930a17841a0c14ef0221..af6506abd835b151e5c31fd4d6382f45ab060e56 100644 GIT binary patch delta 9238 zcmZ`<30#!b7N2iKbQA=h5{x2?JBbZwD5gBoK!(IEC6`n-m&^@q2tg1GF{hCnJ!Mv} z#1zG?Fbt7W$53%iG?z3J>S=x>7G^KEmU;jC-TT3i@A3Q1J@cLWKj-|(5!|0ho+szM&Gyf(HG6;>Yv@Y?AV&m){vK*kCaBiZi)KPm3;2W z7F-re8ci2?2&9c}K6=kAuJz|aa|V+6x6)b6hKkvAEuY@mR`oBr`{)BRxwgBojdSI* zo)m`JnrU495b@YwTf}E^t(5HUBi*4)cY{93!sq4+%n89iiVgu|qs#6FAa(5wl9dLw zOVrn8aJ-HS%`EU@K5J-qJMfvp)vm(Z)t2h)_w53_1__(gHmcUk!$*Hdc!W~Z3EsOD2H zoJlDqV|I+F=07<|V-p_oXpN^&Sm;!)eoy$H0?9Jhi2m>qR(WEDtaRCPrOTYzbLUc$ zmv>o~*TtdI#ImvDI!MnQKv^_K^Npe7hnoK|=HG5D$6R+fqRl^s9S=Kq&_uO^Fr!1;YYs<#gi8hM%xI68y82T2 zB?_MqB$d;I2{EYJ2NMQKPt)ZIe$oWGH({JqMbAx~=Jy|%c?3jpHig3^3C5<|zXrHeTjF4|AV3d$NP^|1sWtUoH@HE^vX| zZT1D2lUIX4d)Usqhj6j>6iU}Cg{ z%9)q2YUOw0&ERuiULryrr#934rDzJC)^|$KH=J4*bPK{;?Z5oRns82Qgjed6tR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K@W0$^^Z?e(~T`9C+f4&SMsK~jcu`(HE(PtEu@@{Mu5(5>>}+V!=^6MVd}GKAT}>% z99PhJ96@WdQL@uu9IceTc_{w3KEHVc66pB#2&p$^emz3}&kuC<>*3O;)b*PY$SDiQ zEp!`4H|n#cy)=?0Z!t-fhXA$A8{w$F=z8mh9ctv99{Db zKMj&RY_V#lIv0_$6N=B`U#FR;VgNmTialPUoC<}DK)bt?O=0#`EI&KSB?_X=n;Abg z@q+lAPR4&6>rThO>dEPe<&TT}+K?lH@@Jko)kL~XeeW4-KVy&K;Dvdff3J= 0; # else return false; @@ -255,7 +256,6 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) { // With it, and more we wait, less we miss stop event. usleep(100 * 1000); int ret = waitpid(pid, &status, WNOHANG); - //printf("WAITPID=%X %X\n",ret,status); *thread = ret; if( ret == -1 && errno != EINTR ) return 3; @@ -265,7 +265,6 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) { return 0; if( WIFSTOPPED(status) ) { int sig = WSTOPSIG(status); - //printf(" STOPSIG=%d\n",sig); if( sig == SIGSTOP || sig == SIGTRAP ) return 1; return 3;