also sprach Junichi Uekawa <[EMAIL PROTECTED]> [2005.02.13.2315 +0100]: > > > What is the process that remains after pbuilder exits ? > > > > /bin/sh run > > parse error.
root 4106 0.0 0.1 2668 1408 ? S 09:46 0:00 /bin/bash
/usr/sbin/pbuilder execute --distribution sid --basetgz
/var/cache/pbuilder/base-sid.tgz /home/madduck/.etc/pbuilder/phoenix-shell.sh
root 4148 38.1 0.1 2520 1220 ? R 09:46 0:39 /bin/sh /run
root 10905 0.0 0.1 2520 1220 ? R 09:48 0:00 /bin/sh /run
The first two exist at all times:
cirrus:~> pstat 4148
pid: 4148 comm: (run)
state: R ppid: 4106
pgrp: 4106 session: 3937
tty_nr: 0 tpgid: -1
flags: 0x100 minflt: 878430
cminflt: 1492951 majflt: 0
cmajflt: 0 utime: 353
stime: 393 cutime: 267
cstime: 720 priority: 25
nice: 0 zero: 1
itrealvalue: 0 starttime: 45689130
vsize: 2580480 rss: 305
rlim: 4294967295 startcode: 0x8048000
endcode: 0x80e511c startstack: 0xbffffc70
kstkesp: 0xbffff510 kstkeip: 0xb7f19693
signal: 0x0 blocked: 0x10002
sigignore: 0x4 sigcatch: 0x10000
wchan: 0 nswap: 0
cnswap: 0 exit_signal: 17
processor: 0
cirrus:~> pstat 4106
pid: 4106 comm: (pbuilder)
state: S ppid: 1
pgrp: 4106 session: 3937
tty_nr: 0 tpgid: -1
flags: 0x100 minflt: 1812
cminflt: 5691 majflt: 0
cmajflt: 2 utime: 1
stime: 1 cutime: 175
cstime: 188 priority: 16
nice: 0 zero: 1
itrealvalue: 0 starttime: 45685919
vsize: 2732032 rss: 352
rlim: 4294967295 startcode: 0x8048000
endcode: 0x80e4e1c startstack: 0xbffffcf0
kstkesp: 0xbffff858 kstkeip: 0xb7f10fee
signal: 0x0 blocked: 0x10000
sigignore: 0x4 sigcatch: 0x43817efb
wchan: 3222393851 nswap: 0
cnswap: 0 exit_signal: 17
processor: 0
The third process is started is respawned continuously by the
second:
pid: 1528 comm: (run)
state: R ppid: 4148
pgrp: 4106 session: 3937
tty_nr: 0 tpgid: -1
flags: 0x40 minflt: 5
cminflt: 0 majflt: 0
cmajflt: 0 utime: 0
stime: 0 cutime: 0
cstime: 0 priority: 25
nice: 0 zero: 1
itrealvalue: 0 starttime: 45709394
vsize: 2580480 rss: 305
rlim: 4294967295 startcode: 0x8048000
endcode: 0x80e511c startstack: 0xbffffc70
kstkesp: 0xbffff4d0 kstkeip: 0x80cbf52
signal: 0x0 blocked: 0x10002
sigignore: 0x4 sigcatch: 0x10000
wchan: 0 nswap: 0
cnswap: 0 exit_signal: 17
processor: 0
Attached you can find the phoenix-shell in use. If I uncomment the
test -t line, everything works. And it all makes sense... no tty
means no read or write, means endless loop in the phoenix shell.
However, why does the script not receive a HUP? That would do, would
it not?
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer, admin, user, and author
`. `'`
`- Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
phoenix-shell.sh
Description: Bourne shell script
signature.asc
Description: Digital signature

