Mail Archives: cygwin/2001/03/17/20:21:47
Should this work ?
administrator AT LIFELESSWKS ~
$ ps
PID PPID PGID WINPID TTY UID STIME COMMAND
2916 1 2916 2916 -1 500 12:10:20 /usr/bin/bash
1924 1 1924 1924 -1 500 12:10:21
/usr/bin/ssh-agent
2480 2916 2480 2140 -1 500 12:10:22 /usr/bin/ps
administrator AT LIFELESSWKS ~
$ kill f 1924
bash: kill: f: no such pid
I ask because I grabbed the code for using cygwin_external from the kill
utility, and was a little surprised when it failed to give me data... I
tracked it back to the functions in external.cc on a debug build of
cygwin.
So then I tried kill f .... which didn't work.
before you ask for patchs.... I'm offering one :] But not for this
function :[
I'm a little lost here in the guts of cygwin, I'd _really_ appreciate a
pointer -
What I coding is within the cygwin dll, I need to end up with
(preferrably) a filled out pinfo struct for a passed pid. Doing it for
the current process is easy enough, but how do I retrieve the info for
other processes?
The external_pinfo struct contains what I need, so if it's easier to get
that that, that's fine (and thats why I grabbed the code from kill).
Rob
P.S. Giving me this code fragment should allow me to finish support for
sched.h & the functions
int sched_get_priority_max(int);
int sched_get_priority_min(int);
int sched_getparam(pid_t, struct sched_param *);
int sched_getscheduler(pid_t);
int sched_rr_get_interval(pid_t, struct timespec *);
int sched_setparam(pid_t, const struct sched_param *);
int sched_setscheduler(pid_t, int, const struct sched_param *);
int sched_yield(void);
I've already got them outlined and returned not-implemented. I've got
the get_priority_min & max & yield finished, as well as
(g|s)etscheduler. So all I need is the ability to grab hold of another
process ID from the pid the caller provides me and set & getscheduler
will be finished shortly.
=== cygcheck attached ===
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Sun Mar 18 12:11:09 2001
WinNT Ver 5.0 build 2195 Service Pack 1
Path: ~/bin
/bin
/usr/bin
/usr/local/bin
/usr/X11R6/bin
/cygdrive/e/WINNT/system32
/cygdrive/e/WINNT
/cygdrive/e/WINNT/System32/Wbem
/usr/bin
/usr/local/bin
/usr/X11R6/bin
/usr/local/lib
/usr/lib
/cygdrive/s/ACCPAC/CA_APPSW
SysDir: E:\WINNT\System32
WinDir: E:\WINNT
PWD = `/usr/home/administrator'
CYGWIN = `ntsec'
USER = `administrator'
MAKE_MODE = `unix'
HOME = `/usr/home/administrator'
NUMBER_OF_PROCESSORS = `1'
PROMPT = `$P$G'
LD_RUN_PATH = `/usr/local/lib'
LOGONSERVER = `\\LIFELESSWKS'
OS2LIBPATH = `E:\WINNT\system32\os2\dll;'
COMSPEC = `E:\WINNT\system32\cmd.exe'
SYSTEMDRIVE = `E:'
HOSTNAME = `LIFELESSWKS'
INCLUDE = `F:\Program Files\Microsoft Visual
Studio\VC98\atl\include;F:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;F:\Program Files\Microsoft Visual
Studio\VC98\include'
PROCESSOR_REVISION = `0702'
MSDEVDIR = `F:\Program Files\Microsoft Visual Studio\Common\MSDev98'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
COMPUTERNAME = `LIFELESSWKS'
!E: = `E:\cygwin\bin'
CLASSPATH = `E:\Program Files\HEAT\navbar;%CLASSPATH%'
WINDIR = `E:\WINNT'
USERPROFILE = `E:\Documents and Settings\Administrator'
PS1 = `]0;\w
[32m\u@\h [33m\w[0m
$ '
PROGRAMFILES = `E:\Program Files'
FSERVER = `tcp/203.35.199.241:19114'
MACHTYPE = `i686-pc-cygwin'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 2, GenuineIntel'
OS = `Windows_NT'
OLDPWD = `/usr/bin'
CVS_RSH = `ssh'
PROCESSOR_ARCHITECTURE = `x86'
TEMP = `/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp'
EDITOR = `vim'
PROCESSOR_LEVEL = `6'
SYSTEMROOT = `E:\WINNT'
HOMEDRIVE = `E:'
LIB = `F:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;F:\Program
Files\Microsoft Visual Studio\VC98\lib'
ALLUSERSPROFILE = `E:\Documents and Settings\All Users'
SHLVL = `1'
SSH_AGENT_PID = `1924'
APPDATA = `E:\Documents and Settings\Administrator\Application Data'
COMMONPROGRAMFILES = `E:\Program Files\Common Files'
HOMEPATH = `\'
USERDOMAIN = `LIFELESSWKS'
USERNAME = `administrator'
SHELL = `/bin/sh'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
SSH_AUTH_SOCK = `/tmp/ssh-fgNT2480/agent.2480'
_ = `/bin/cygcheck'
TZ = `SST-10SDT-11,M8.5.0/2,M3.5.0/2'
Use `-r' to scan registry
a: fd N/A N/A
c: hd FAT 101Mb 50% CP UN
d: hd NTFS 7161Mb 94% CP CS UN PA FC D1
e: hd NTFS 4479Mb 87% CP CS UN PA FC
f: hd NTFS 4102Mb 89% CP CS UN PA FC New Volume
g: cd N/A N/A
i: hd NTFS 7161Mb 63% CP CS UN PA FC D2
E:\cygwin\bin /usr/bin system binmode
E:\cygwin\lib /usr/lib system binmode
d:\install /usr/install system binmode
E:\cygwin / system binmode
i:\cache2 /usr/local/squid/cache2 system binmode
f:\src /usr/src system binmode
f: /t user binmode
g: /mnt/cdrom system binmode
Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cpp.exe
Found: E:\cygwin\bin\find.exe
Found: E:\cygwin\bin\gcc.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\sh.exe
56k 2000/12/03 E:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
"cygbz21.0.dll" v0.0 ts=2000/11/21 10:53
82k 2001/01/21 E:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/1/22 7:39
18k 2000/10/23 E:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2000/10/23 13:26
17k 2001/01/07 E:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/7 15:34
14k 2000/10/23 E:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2000/10/24 6:02
81k 2000/12/05 E:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/11/26 12:43
35k 2000/12/05 E:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/11/26 12:43
45k 2000/10/22 E:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
"cygjbig1.dll" v0.0 ts=2000/10/23 10:06
119k 2000/10/23 E:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
"cygjpeg6b.dll" v0.0 ts=2000/10/23 11:58
53k 2001/01/21 E:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/1/22 7:39
414k 2001/01/21 E:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/1/22 7:40
299k 2001/01/21 E:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/1/22 7:38
34k 2001/01/21 E:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/1/22 7:38
163k 2001/02/03 E:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
"cygpng2.dll" v0.0 ts=2001/2/4 8:21
108k 2001/01/07 E:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/7 15:34
390k 2001/01/18 E:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2001/1/18 15:44
5k 2001/01/18 E:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2001/01/18 E:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2001/1/18 15:44
243k 2000/10/23 E:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
"cygtiff3.dll" v0.0 ts=2000/10/23 12:14
623k 2000/12/05 E:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/11/26 12:43
41k 2000/11/20 E:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-noX4.dll" v0.0 ts=2000/11/20 13:41
45k 2000/11/20 E:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-X4.dll" v0.0 ts=2000/11/20 13:45
49k 2001/02/03 E:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2001/2/4 7:35
615k 2001/01/31 E:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2001/2/1 2:08
Cygwin DLL version info:
dll major: 1001
dll minor: 8
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
dll malloc env: 28
api major: 0
api minor: 34
shared data: 3
dll identifier: cygwin1
mount registry: 2
cygnus registry name: Cygnus Solutions
cygwin registry name: Cygwin
program options name: Program Options
cygwin mount registry name: mounts v2
cygdrive flags: cygdrive flags
cygdrive prefix: cygdrive prefix
cygdrive default prefix:
build date: Wed Jan 31 10:08:38 EST 2001
shared id: cygwin1S3
Use -h to see help about each section
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -