LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 03-09-2009, 07:53 AM   #1
jiikka
LQ Newbie
 
Registered: Jan 2009
Location: Chennai, India
Distribution: Redhat
Posts: 23
Thanked: 1
Question unknown escape sequence: '\040'


[Log in to get rid of this advertisement]
Hello folks ..
am trying to understand ptrace for my project by running few trial program ..

i get this error
unknown escape sequence: '\040'

this is one of those trial programs
/* `tracer' parent */
#include <sys/ptrace.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
main()
{
int pid, status;
if((pid = fork()) == 0) {
execl("/home2/lfy/child1", "child1", 0);
printf("exec failed...\n");
} else {
sleep(1);
kill(pid, SIGINT);
wait(&status); // wait for child to stop
if(WIFSTOPPED(status))
printf("child has stopped...\n");
sleep(3);
ptrace(PTRACE_CONT, pid, 0, 0);
/* Will not come out of this wait because
* child does not terminate.
*/
wait(&status);
}
}

/* compile this program to `child1' */
#include <sys/ptrace.h>
main()
{
ptrace(PTRACE_TRACEME, 0, 0, 0);
while(1) printf("hello\n");
}

thank you
jiikka is offline  
Tag This Post
Reply With Quote
Old 03-09-2009, 08:48 AM   #2
hackson
LQ Newbie
 
Registered: Mar 2009
Posts: 3
Thanked: 0
I have faced the same issue it is because of your editor version, kindly use vi instead of gedit or vice versa to identify the these special characters.

Eclipse is also a good choice for trying c programming
hackson is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Unknown Netbios Packets to Unknown Network fukawi2 Linux - Networking 2 09-17-2007 07:41 PM
escape sequence help in C name_in_use450 Linux - General 6 07-01-2004 10:23 AM
escape sequence for changing color of prompt killer_bunny Linux - General 1 02-10-2004 08:40 PM
smiley face escape sequence problem mandrakeroot Programming 12 09-06-2003 07:11 PM
apache 2.040 dkhat Linux - General 0 02-26-2003 11:56 PM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration