>>> 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
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
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)
{
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
4 matches
Mail list logo