Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
>>> bash-3.2$ ps -W | grep mysql >>> 9924572 992 5900 con 500 14:35:13 >>> /drives/d/mysql/bin/mysqld-nt >>> 5900 0 0 5900?0 14:35:14 >>> d:\mysql\bin\mysqld-nt.exe > >ps -W does not have a perfect algorithm for knowing when to mask the >windows

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
Thank you again, I looked further and found out that this happens when I start the mysql-nt application from bash. Here's the result when I start it from cmd - only one process listed with equal cywgin and win PIDs: D:>mysql\bin\mysqld-nt.exe --defaults-file=conf\mysql.conf bash-3.2$ ps -W | gr

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
Thank you Reini. However when I use this function it returns -1. Here's my program, sample output and strace snip: #include #include #include #include #include pid_t pid; pid_t cygwin_pid; int res; extern pid_t cygwin_winpid_to_pid(int); int main( int argc, char **argv) {

Get the cygwin PID of a Win PID

2008-06-26 Thread Borislav Ivanov
d (by using winpid = cygwin_internal(CW_CYGWIN_PID_TO_WINPID, pid)). Is there some analogue to retrieve the corresponding cygwinpid of a winpid? Thank you, Borislav Ivanov -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Do