On Tue, Apr 7, 2009 at 10:11 PM, Japa
<greatjapa@gmail.com> wrote:
pid = posix.fork()
if pid == 0 then
local file = io.open("archive.pdf", mode)
local t = file:read("*all")
client:send(t)
file:close()
client:close()
-- kill or exit ???
end
I'm trying to make a client-server, above is the code of server and when i send a archive to the client, the client doesn't finish because some reason that i don't know. That's why i trying to kill the child process, you talk about a exit(), how can i do that? os.exit? posix.exit?
On Tue, Apr 7, 2009 at 10:24 PM, Mike Panetta
<panetta.mike@gmail.com> wrote:
Why do you want to kill it? Why not just exit()?
MikeOn Tue, Apr 7, 2009 at 9:02 PM, Japa
<greatjapa@gmail.com> wrote:
Someone knows how can I kill a process in posix? I'm in a child process and I want to kill this process(kill myself)
thanks
--
Marcelo Oikawa
--
Marcelo Oikawa