Thread system()-Aufruf in einem Kindprozess eines Servers (6 answers)
Opened by MickiM2000 at 2007-04-19 17:01

bloonix
 2007-04-20 14:19
#37513 #37513
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
oder auch so, um genauere Infos über das ausgeführte Kommando jedes
Childs zu erfahren:

Code: (dl )
1
2
3
4
5
6
7
8
...
  if (my $pid = fork) {
     $childs{$pid} = $cmd;
  }
  ...
  $reaped{$pid} = $childs{$pid}.':'.$sig.':'.$?;
  delete $childs{$pid};
...


child 25833 terminated - status ls:CHLD:0
child 25834 terminated - status w:CHLD:0
child 25835 terminated - status id:CHLD:0
\n\n

<!--EDIT|opi|1177064389-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread system()-Aufruf in einem Kindprozess eines Servers