Thanks, I think this should fix it. I'll push it into master.
Jay
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 4a294a5..72561ca 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -202,6 +202,7 @@ main(int argc, char **argv)
return 1;
}
+ g_memset(pid_s, 0, sizeof(pid_s));
error = g_file_read(fd, pid_s, 7);
if (-1 == error)
On Wed, Jun 19, 2013 at 9:56 AM, Steven M Saxe
<[email protected]> wrote:
> All,
> Thanks for all your hard work. xrdp is a great product.
>
> We're using xrdp 0.6.0. We noticed sometime when we did
> a............................
> /usr/local/sbin/xrdp-sesman --kill
>
> We'd get the error......................
> error killing sesman: invalid pid
>
> We did an strace and found that when the PID has less that 5 digits,
> the PID used in the signal call was incorrect.
>
> I've attached an strace of it failing, and it working.
>
> I'm not a great c programmer, so I'm not sure what the fix would be.
>
> Anyway, I've attached some info.
>
> Thanks.(See attached file: info.tgz)
> Steven Saxe
> LINUX SA
> Raytheon
> BLDG S77 3M-74
> 16800 E. CentreTech Parkway
> Aurora, Colorado 80011
> Desk: (720)216-8101
> Cell (303)960-6308
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> xrdp-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xrdp-devel
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
xrdp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xrdp-devel