LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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


Reply
  Search this Thread
Old 03-09-2009, 06:53 AM   #1
jiikka
LQ Newbie
 
Registered: Jan 2009
Location: Chennai, India
Distribution: Redhat
Posts: 23

Rep: Reputation: 17
Question unknown escape sequence: '\040'


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
 
Old 03-09-2009, 07:48 AM   #2
hackson
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 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
 
  


Reply

Tags
debug



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:28 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