Re [ARGUS] undesirable ra behaviour
Carter Bullard
carter at qosient.com
Wed Sep 8 11:01:54 EDT 2004
So ra() does fork to create its filters, but it does a
few waitpid()s. There maybe a race condition, so try this
patch:
Index: gencode.c
===================================================================
RCS file: /usr/local/cvsroot/argus-clients/common/gencode.c,v
retrieving revision 1.11
diff -r1.11 gencode.c
304c304
< waitpid(pid, &status, WNOHANG);
---
> waitpid(pid, &status, 0);
Carter
> From: Peter Van Epp <vanepp at sfu.ca>
> Date: Tue, 7 Sep 2004 21:06:18 -0700
> To: <argus-info at lists.andrew.cmu.edu>
> Subject: [ARGUS] undesirable ra behaviour
>
> I haven't gotten further than "hmmm, thats undesirable, I should do
> something about that", but ra appears to be spawning zombies on FreeBSD. This
> is a perl script running ra against a month's worth of archive files one at a
> time. ra appears to be creating a zombie on every invocation. They go away
> when the script ends but the possibility of filling the process table
> presumably exists.
>
> USER PID PPID PGID SESS JOBC STAT TT TIME COMMAND
>
> vanepp 309 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 313 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 317 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 321 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 325 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 332 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 336 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 340 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 344 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 348 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 355 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 359 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 363 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 367 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 374 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 378 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 382 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 389 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 393 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 397 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 404 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 408 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 414 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 421 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 425 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 429 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 433 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 437 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 447 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 451 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 455 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 459 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 466 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 470 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 474 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 481 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 485 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 489 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 496 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 500 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 504 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> vanepp 511 295 295 c2d50880 0 Z ?? 0:00.00 (ra)
> ...
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>
------ End of Forwarded Message
More information about the argus
mailing list