Hi all,
In my application I has to use many call to external command using the system("") call. My problem is even though this command is already finish, it still appear as a running job when I type the ps command on the console. For example:
79 root /sbin/getty 38400 tty2
82 root -sh
83 root /sbin/syslogd -n -m 0
84 root /sbin/klogd -n
85 root /usr/bin/tail -f /var/log/messages
105 root /AutoPrint -qws
106 root [flush-179:0]
107 root /AutoPrint -qws
108 root /AutoPrint -qws
109 root /AutoPrint -qws
112 root [kjournald]
122 root ps
The PID from 107 to 109 came from my application (AutoPrint) after a system() command. If I run it long enough, there are many jobs with the same name (/AutoPrint -qws) come out when I type ps command. Is it a memory leak?
Thank you very much
Bookmarks