The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
c system call rangaswamy High Level Programming 1 02-19-2008 10:53 AM
how to differentiate system call from library call muru UNIX for Advanced & Expert Users 2 07-19-2007 08:20 PM
any system call in unix to access ip routing table vinodkumar IP Networking 1 04-21-2005 08:56 AM
sigwait system call in UNIX signal md7ahuja High Level Programming 1 04-26-2004 02:17 AM
Why process leader can not call setsid() chenhao_no1 High Level Programming 2 10-08-2002 07:09 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2008
Registered User
 

Join Date: Apr 2008
Posts: 7
Lightbulb UNIX System Call for creating process

Hell Sir,
This is chanikya
Is there any System call which behaves just like fork but i dont want to return back two times to the calling func.
In the following ex iam creating a child process in the called func but the ex prints two times IN MAIN.


ex :-

calling()
{
fork();

}

main()
{
calling();
printf("IN MAIN\n");
}
Forum Sponsor
  #2  
Old 04-16-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
I think you are looking for one of the exec calls like execlp();

try man execlp
  #3  
Old 04-16-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
Please read the:

Simple rules of the UNIX.COM forums:

Don't double posts questions, continue here:

how to create a process

Thread closed.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0