Sponsored Content
Top Forums Programming how to handle a zombie process Post 91863 by mridula on Tuesday 6th of December 2005 07:41:31 AM
Old 12-06-2005
how to handle a zombie process

hi!

i am writing a c program which has the following structure:

main()
{
child1
child1.1
child2
child2.1
}

the child1.1 and 2.1 are becoming zombies...
how can i handle this...

thanx
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Zombie process

How do i kill a zombie process. Is it that only root can kill a zombie process. (8 Replies)
Discussion started by: orca
8 Replies

2. UNIX for Advanced & Expert Users

Zombie process

I would like to create a zombie process so that I can test monitoring software functionality. Any techniques? (2 Replies)
Discussion started by: swhitney
2 Replies

3. Linux

zombie process

Hi What is the command to find only the zombie processes?? How to write the code in C to fetch the no. of zombie processes?? Thanx (5 Replies)
Discussion started by: jeenat
5 Replies

4. Linux

How to kill zombie process

I have RHES4 machine with VRTSralus - Backup Exec agent installed there and running as a service. The agent hiccups sometimes and turns into defunct state. The problem is that I cannot kill it anyway., it stays there forever until the machine is rebooted. I wonder if anyone had such an experience... (1 Reply)
Discussion started by: will_mike
1 Replies

5. UNIX for Dummies Questions & Answers

How do you create a zombie process?

I'm very new to UNIX, so I need some help please. How do I create a zombie process with just basic UNIX commands (no script, C, PERL, etc)? Please give an example. Thanks. (6 Replies)
Discussion started by: teiji
6 Replies

6. Shell Programming and Scripting

Zombie process

Hi I need help because I don't know if it is possible to add a find inside a cat. like I have a file with the pid of the process that use to became zombie. And I have the same pid stored in the var (pid1) now, I have no clue how to check if the the find finds the pid or even if it's... (2 Replies)
Discussion started by: ruben.rodrigues
2 Replies

7. Solaris

zombie process

dear friends, in an interview they asked me what is zombie process. how we can identifying these process.if can you kill all zombie process. (8 Replies)
Discussion started by: sijocg
8 Replies

8. AIX

zombie process

Is there an equivilant to the preap command in AIX that would allow me to get rid of a zombie process. I am new to AIX, moving over from Solaris and in the past I have been able to preap the pid on the defunct process to clean them up. I have looked around and the best I can see is that it may... (3 Replies)
Discussion started by: sboots
3 Replies

9. UNIX for Advanced & Expert Users

Zombie process

What is the overhead associated with zombie process?Is it running out of process-ID?:confused: Since some information is stored in process table.. Thanks in Advance (4 Replies)
Discussion started by: jois
4 Replies

10. AIX

Catch Zombie Process

Hi All, Anyone have any shell script to capture the zombie process, as according to the support they need the real time zombie PID, they only provide the kdb (0) > p* |grep -i defunct (0) > p * | grep <hex pid> But this is doesn't seem easy to catch the zombie as it is not always... (1 Reply)
Discussion started by: ckwan
1 Replies
SWISS::DEs(3pm) 					User Contributed Perl Documentation					   SWISS::DEs(3pm)

Name
       SWISS::DEs.pm

Description
       SWISS::DEs represents the DE lines of a UniProt Knowledgebase (Swiss-Prot + TrEMBL) entry as specified in the user manual
       http://www.expasy.org/sprot/userman.html.

       The DEs object basically holds lists of DE objects, each of them representing a protein name element.  The "elements", "hasFragment",
       "Includes" and "Contains" attributes/methods work as follows :

	DE   RecName: Full=CAD protein;
	DE	      Short=CAD;
	DE   AltName: Full=Protein rudimentary;
	DE   Includes:
	DE     RecName: Full=Glutamine-dependent carbamoyl-phosphate synthase;
	DE		EC=6.3.5.5;
	DE   Includes:
	DE     RecName: Full=Aspartate carbamoyltransferase;
	DE		EC=2.1.3.2;
	DE   Flags: Fragment;

	-= Entry::DEs =-
	elements (for each DE object, see SWISS::DE.pm documentation) :
	   toText:    "CAD protein",  "CAD",	   "Protein rudimentary"
	   category:  "RecName",      "RecName",   "AltName"
	   type:      "Full",	      "Short"	   "Full"
	hasFragment : "Fragment"
	Includes : ListBase of DEs (child1, child2)
	Contains : empty ListBase

	-= child1 =-
	elements (for each DE object) :
	   toText:    "Glutamine-dependent carbamoyl-
		       phosphate synthase",	       "6.3.5.5"
	   category:  "RecName",		       "RecName",
	   type:      "Full",			       "EC"
	hasFragment : undef

	-= child2 =-
	elements (for each DE object) :
	   toText:    "Aspartate carbamoyltransferase",  "2.1.3.2"
	   category:  "RecName",			 "RecName",
	   type:      "Full",				 "EC"
	hasFragment : undef

       Note: the old unstructured DE format can still be used, and will be parsed the same way into DE objects (but without setting their
       attributes 'category' and 'type'.

	DE   CAD protein (Protein rudimentary) [Includes: Glutamine-dependent
	DE   carbamoyl-phosphate synthase (EC 6.3.5.5); Aspartate
	DE   carbamoyltransferase (EC 2.1.3.2)] (Fragment).

Inherits from
       SWISS::ListBase.pm

Attributes
       "text"
	   The (raw) text of the DE line (without the 'DE   ' line type prefixes)

       "list"
	   Array reference to the SWISS::DE objects containing the different names for the entry. The first element of the list is the recommended
	   name.  Note: use "elements" method (inherited from ListBase) to get (and loop through) the array of DE objetcs.

       "Includes"
       "Contains"
	   Each of these is a SWISS::ListBase object whose list contains a SWISS::DEs object for each 'child' of the protein (i.e. peptide or
	   functional domain). See the UniProtKB user manual for an explanation. It is possible to have both Includes and Contains in a single
	   entry:

	    DE	 RecName: Full=Arginine biosynthesis bifunctional protein argJ;
	    DE	 Includes:
	    DE	   RecName: Full=Glutamate N-acetyltransferase;
	    DE		    EC=2.3.1.35;
	    DE	   AltName: Full=Ornithine acetyltransferase;
	    DE		    Short=OATase;
	    DE	   AltName: Full=Ornithine transacetylase;
	    DE	 Includes:
	    DE	   RecName: Full=Amino-acid acetyltransferase;
	    DE		    EC=2.3.1.1;
	    DE	   AltName: Full=N-acetylglutamate synthase;
	    DE		    Short=AGS;
	    DE	   RecName: Full=Arginine biosynthesis bifunctional protein argJ alpha chain;
	    DE	 Contains:
	    DE	   RecName: Full=Arginine biosynthesis bifunctional protein argJ beta chain;

       "hasFragment"
	   Contains 'Fragment' or 'Fragments' (evaluates to true) if the DE lines contain the 'Fragment(s)' indication (in 'Flags:' line with the
	   new DE line format), otherwise evaluates to false. Compare to the more robust Entry::isFragment which also checks the FT lines for a
	   NON_CONS or NON_TER.

       "isPrecursor"
	   Returns 1 if the flag 'Precursor' is present (undef if not). Note: only with new DE line format.

Methods
   Standard methods
       new
       fromText
       toText

Evidence Tags
       With the new DE line format, each DE element can have distinct evidence tags, which are stored in the DE object themself (see SWISS::DE.pm
       documentation).	The evidence tags for the 'Flags' line are stored in the parent DEs object itself.  With the old DE line format, since the
       DE line did not have a fixed syntax in TrEMBL, it is impossible to reliably assign evidence tags separately to the different elements of
       the DE lines. Therefore, the DE line can only be evidence tagged as a whole, and the following methods have their prototype defined in
       SWISS::BaseClass instead of the direct parent of SWISS::DEs, SWISS::ListBase :

	addEvidenceTag
	deleteEvidenceTags
	getEvidenceTags
	getEvidenceTagsString
	hasEvidenceTag
	setEvidenceTags

       example :

	$evidenceTag = $entry->Stars->EV->addEvidence('P', 'DEfix', '-', 'v1.3');
	# add global DE evtag if old DE line format, 'Flags' evtag if new format
	$entry -> DEs -> addEvidenceTag($evidenceTag);

perl v5.10.1							    2008-07-17							   SWISS::DEs(3pm)
All times are GMT -4. The time now is 12:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy