LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2007, 03:36 PM   #1
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
is fork using sys_clone ???


Hi,

I'm writing simple tracing application using ptrace system call. While working on that, I noticed one thing. I wrote a simple dummy program that forks a child and I use it as my monitored process. When I fork the returned system call is sys_clone... I'd expect to see sys_fork rather that sys_clone if I called fork(). Can anybody explain it to me?

Thanks
Chris
 
Old 04-05-2007, 06:31 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
The solution is very simple… sys_fork() does not exist (yet).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using fork() culin Programming 12 01-17-2007 10:59 PM
sys_clone why2jjj Linux - General 0 12-01-2005 10:33 PM
fork() in c++ deveraux83 Programming 5 11-13-2004 03:12 PM
more on fork() feetyouwell Programming 6 09-17-2004 11:18 AM
fork beginner_84 Programming 2 08-20-2004 04:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration